Quantcast
Channel: Discourse Meta - Latest topics
Viewing all 60721 articles
Browse latest View live

Disable email notifications for own posts

$
0
0

@dictoon wrote:

Hi all,

I've enabled email notifications ("Send me an email for every new post") in my profile. Unfortunately, I now receive notifications for my own posts and replies.

Technically it makes sense, but it's slightly annoying. I'm aware that it's by design: https://meta.discourse.org/t/getting-email-notifications-for-my-own-posts/12922

I think it would be nice to have some kind of "Notify me of all new posts" option to user profiles. As the admin of a low traffic forum, I'd like to be notified of all and every posts/replies without getting an email for my own.

Does it make sense?

Franz

Posts: 3

Participants: 2

Read full topic


Weird transactional email question

$
0
0

@stroupaloop wrote:

Sooo ... I'll start off with "I thought I had a good understanding of how to setup SES or Mandrill", but apparently I'm missing something here.

So to preface my setup is > AWS (EC2, Redis, postgres) > because of the constraints of my organization.


SCENARIO 1:

When setting up the Discourse server I used SES and my @gmail.com account (let's call it admin@gmail.com for simplicity), which was added using the 'Verify a New Email Address' process for individual email addresses.

The SMTP settings within app.yml look like the following:

DISCOURSE_SMTP_ADDRESS: email-smtp.us-east-1.amazonaws.com
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: [AWS SES USERNAME]
DISCOURSE_SMTP_PASSWORD: [AWS SES PASSWORD]

Using the admin@gmail.com account, I am able to successfully:

  • send an email to other @gmail.com email addresses
  • send emails to my @custom.com domain email addresses

I then use my @custom.com (successfully verified by SES) with Discourse and here's what happens:

  • I can send emails to @gmail.com accounts
  • BUT not to @custom.com email addresses (including the one I'm sending it with).

NOTE: Neither @gmail.com or @custom.com are verified domains within SES.


SCENARIO 2:

My organization also has a Mandrill account used across the organization by several different domains (successfully). I have done the following:

  • added @custom.com to the list of sending domains
    • have verified the domain and DKIM but receive an SPIF error because it's not a top 10 record)
  • created an API key and added the updated SMTP info into the app.yml file, which looks like the following

DISCOURSE_SMTP_ADDRESS: smtp.mandrillapp.com
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: [Mandrill user email address]
DISCOURSE_SMTP_PASSWORD: [Mandrill API key]

When attempting to send emails via @custom.com while using Mandrill I can't send an email from Discourse to @custom.com OR @gmail.com email addresses, BUT I receive confirmed delivery via the Mandrill API logs ...

Method: messages/send-raw.json
Time: May 11, 2015 3:47 pm
Call time: 69.4ms
IP: [Discourse server EC2 elastic IP address]
User Agent: Mandrill-Python/1.0.56

Full Request

{
    "send_at": null,
    "from_name": null,
    "raw_message": "Received: from localhost.localdomain (unknown [EC2 Elastic IP address])\n\t(Authenticated sender: MI0xXUE4xIA5TTfSyziQcg@custom.com)\n\tby ip-10-187-29-39 (Postfix) with ESMTPSA id 2AC4DC0736\n\tfor <admin@custom.com>; Mon, 11 May 2015 19:47:08 +0000 (UTC)\nDate: Mon, 11 May 2015 19:47:37 +0000\nFrom: admin@custom.com\nReply-To: admin@custom.com\nTo: admin@custom.com\nMessage-ID: <8d5c1004-4d64-4722-8f50-5fc1cde5c535@discourse.custom.com>\nSubject: [Custom Discourse] Email Deliverability Test\nMime-Version: 1.0\nContent-Type: multipart/alternative;\n boundary=\"--==_mimepart_55510759a2805_6a3ff1b5cd7e7c285b2\";\n charset=UTF-8\nContent-Transfer-Encoding: 7bit\nAuto-Submitted: auto-generated\n\n\n----==_mimepart_55510759a2805_6a3ff1b5cd7e7c285b2\nContent-Type: text/plain;\n charset=UTF-8\nContent-Transfer-Encoding: 7bit\n\nThis is a test email from\n\n[**http://discourse.custom.com**][0]\n\nEmail deliverability is complicated. Here are .."
    "ip_pool": null,
    "from_email": null,
    "return_path_domain": null,
    "to": [
        "admin@gmail.com"
    ],
    "key": "MI0xXUE4xIA5TTfSyziQcg",
    "async": false
}

Full Response

[
    {
        "email": "admin@gmail.com",
        "status": "sent",
        "_id": "2312b8907c184e1985e046c1c2e57f0a",
        "reject_reason": null
    }
]

So there's obviously multiple problems going on here, which from what I understand is ...

  • there's something preventing me from delivering an email from @custom.com to my own (or other) @custom.com email addresses via SES
  • I'm completely unable to successfully deliver any emails (to @gmail.com or @custom.com) from Mandrill, even with a domain and DKIM verified and SPF record added (not verified due to not Top 10) for @custom.com

The only thing I can think of is that in the "raw_message" there's the following ...

"Received: from localhost.localdomain (unknown [Discourse EC2 elastic IP address])\n..."

where the actual EC2 elastic IP address is used. Could this be the cause and any idea on how to resolve?

The other thought is that the @custom.com spam or whitelist filter is blocking me from successfully delivering emails, BUT this doesn't make sense because I'm using a verified email from the same exact @custom.com domain.

Thoughts? Thanks so much!

Posts: 5

Participants: 2

Read full topic

Registration filtering by domain?

$
0
0

@japf wrote:

I would like to deploy Discourse at work and we would like to restrict the email domains that can register to the community (for example allow only @mycompany.com emails).

That doesn't seems possible out of the box.

What is the recommended approach for this ? Is a plugin an appropriate solution ?
What is the estimated effort for this kind of change ?

Posts: 5

Participants: 3

Read full topic

This Week's Users includes users with no activity

$
0
0

@BCHK wrote:

I was looking through my list of "This Week"'s users - and saw a number of users on the list with nothing but zeros in all the columns. This seems like a bug - because if they were null on all the measures - it doesn't seem like they should be on the list of this week's users.

Am I missing something here? (See example below)

Posts: 3

Participants: 2

Read full topic

Deleting a user does not destroy the single sign on record

$
0
0

@dansingerman wrote:

We have the situation where we use single sign on, and a record got created with the wrong email address.

I believe if we delete the user and recreate them again (with the correct email address) via the API sync_sso method the problem will resolve.

However this doesn't work, the deleted user gets resurrected.

Eyeballing the code it doesn't look like the UserDestroyer destroys any related SingleSignOnRecord instances, which I think explains this.

Should the UserDestroyer destroy SingleSignOnRecords? Is there a use case where we would not want this to happen?

Posts: 2

Participants: 2

Read full topic

Maximum number of Custom User Fields?

Permissions for categories

$
0
0

@larsboehnke wrote:

Hi there, is it possible to have category permissions?

What I want to achieve: I want to restrict a category in editing and/or visibility for a certain group of users. Is there a way to achieve this?

All the best, Lars

Posts: 3

Participants: 3

Read full topic

Why are some WordPress links Oneboxed, and others are not?

$
0
0

@BCHK wrote:

I really can't understand why wordpress oneboxing isn't a higher priority than it seems to be. I mean my impression was that Discourse wanted to be the "Wordpress" of forums - ... and everyone knows how prevalent wordpress blogs are - so why not a special feature that auto-one boxes word press blog entries. (or even better - any web page - just pull out the first x number of words in the body of the web page).

I have to believe that it would greatly improve Boing BOing's conversations.

Does anyone really think that this is the most helpful way to start a conversation?

Posts: 11

Participants: 5

Read full topic


CORS Preflight Checks Don't Get Proper Headers

$
0
0

@boushleyExtra wrote:

When trying to make a CORS request that requires a preflight check the response does not contain the proper headers.

Currently I'm trying to implement Single Sign Off and I was told by @sam to use CORS against the session#destory endpoint. When I make a DELETE request CORS does a preflight OPTIONS request. This results in a 404 response that does not have any CORS headers:

content-length:0
content-type:text/html; charset=utf-8
date:Wed, 13 May 2015 17:18:14 GMT
server:nginx
status:404 Not Found
status:404 Not Found
version:HTTP/1.1
x-request-id:f816d011-66c5-4a1b-8b09-6772aa9695c9
x-runtime:0.003151

I know CORS is configured correctly because calls that don't result in a 404 have the proper headers in place. It appears that some other piece of middleware after the CORS rack middleware is stripping off those headers. The code inside of the CORS middleware appears to be running on these OPTIONS requests, but something else is stripping those headers back off.

Any ideas what middleware or other part of this stack might be sanitizing 404 response headers?

Posts: 1

Participants: 1

Read full topic

Akismet: Please show me the user card when I select the avatar

$
0
0

@tobiaseigen wrote:

Akismet is starting to help me identify spam, which is awesome. When investigating a post, clicking on the avatar or name of the "posted by" user takes me directly to the admin page for the user. I'd like to have the avatar click pop up the user card, like on the admin user list, so I can pop up for a quick detailed look at the person before I click delete.

Posts: 2

Participants: 2

Read full topic

Pups failure when rebuilding with Adsense plugin

$
0
0

@jamesmarkcook wrote:

I encountered an error when trying to upgrade my forum yesterday from the admin panel so tried rebuilding the container just now from the command line. I'm getting a failure with rake assets:precompile and it tells me the location of the failure is in:
Location of failure: pups/lib/pups/exec_command.rb:105:in 'spawn'

A full screenshot can be found here

I wondered if @sam has encountered this before or if this is a known issue with pups or if it's a problem with my install?

I'm in the process now of scp'ing the shared folder down to my local machine before I go messing around with anything.

Any help would be much appreciated as my site is currently offline.

Thanks

Posts: 6

Participants: 4

Read full topic

Error with manual install: Failed opening required '__DIR__/lib/discourse.php'

$
0
0

@mikegreenberg wrote:

I manually downloaded the latest master ZIP from the repo, dropped it into public_html/blog/wp-content/plugins/wp-discourse/, and clicked Activate. It produced the following error:

Warning: require_once(__DIR__/lib/discourse.php) [function.require-once]: failed to open stream: No such file or directory in [REDACTED]public_html/blog/wp-content/plugins/wp-discourse/wp-discourse.php on line 30

Fatal error: require_once() [function.require]: Failed opening required '__DIR__/lib/discourse.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in [REDACTED]public_html/blog/wp-content/plugins/wp-discourse/wp-discourse.php on line 30

Not sure if this was designed to install this way, but the installation notes are sparse in this regard. The only way I was able to fix it was to replace __DIR__ with WPDISCOURSE_PATH in https://github.com/discourse/wp-discourse/blob/master/wp-discourse.php#L30-L32.

Not sure where __DIR__ is initialized, but it wasn't clear how to best fix this. Thoughts on my fix? Is this a bug?

Posts: 3

Participants: 1

Read full topic

Add wildcard top and/or second level domains to whitelist for inclusion

$
0
0

@stroupaloop wrote:

I did some testing and don't think this works, but would it be possible to add wildcard top and/or second level domains capability to the whitelist for acceptable registered user emails?

For example:

*.gov
*.custom.gov
*.mil
*.custom.mil

or some variation of this? Thanks!

Posts: 2

Participants: 2

Read full topic

Did localhost Discourse change drastically?

$
0
0

@Mittineague wrote:

I know there were some changes made recently and I wanted to get up to date so I started fresh.

Installations often tend to be troublesome for me, so I've likely messed up somewhere along the way.

For a while, the server would start up but loading would hang midway in the scss files.

Now the site loads - BUT - I'm getting only 2 topics and 2 users
system and eviltrout

If this is correct, I have no problem with that and I won't bother scrapping everything and starting fresh again.

The problem I'm now having is eviltrout "password" is giving me an invalid login attempt.

So I would like to know the new password if it is now different, or if I messed up badly and should try again.

Posts: 4

Participants: 3

Read full topic

Must approve users functionality impact to existing users

$
0
0

@stroupaloop wrote:

Random question that I figure someone knows the answer to without me either screwing over my user base or spinning up an entirely separate Discourse server.

Does this mean that I'll need to go into every existing user's account and "verify" their account like a new registered user OR something worse will happen to the existing users? Thanks!

Posts: 1

Participants: 1

Read full topic


Missing styling/auto-completion in Admin->Customize->CSS/HTML

$
0
0

@Yuun wrote:

Live site on the top (beta7+53), test site on the bottom (beta9+25).

Top has some prettiness and auto-completion (e.g. typing a { then hitting enter slaps in a }), bottom is just plain text. The customization themselves are applying and working fine, though.

Posts: 2

Participants: 2

Read full topic

More secure logout redirection

$
0
0

@erik wrote:

I want the user's session in my SSO provider to be killed when a user clicks 'Log Out', but the current logout redirection feature doesn't quite fit the bill because I have no way of knowing if the ensuing GET to the logout page was intentional or the result of a low-effort CSRF. (I do consider drive-by logouts from my provider to be a security problem.)

From the perspective of the SSO provider (on the server), I want to authenticate that the user has deliberately ended their Discourse session.

There are two approaches that come to mind:

  1. Add a SSO Secret-signed bearer proof to the URL the user is redirected to.
  2. Allow the SSO provider to query Discourse for the liveness of the user's session.

My instinct is that the first approach is complicated to get right.

The second might be really easy, depending on how Discourse stores sessions. (I haven't looked.) Ideally, I could just hit an (authenticated) admin API endpoint with the nonce from the login and find out of the session created from that nonce is alive.

Posts: 1

Participants: 1

Read full topic

Email notification when posts need to be moderated

$
0
0

@watchmanmonitor wrote:

Continuing the discussion from Would like to be notified when a new user registers when 'must approve users' setting is on:

I know I get notifications on new users... think it's timely, so am good there.

Here's the request.. can we get similar moderator notifications for pending posts?

Posts: 1

Participants: 1

Read full topic

How does discourse stack up to Jive today? (2015)

$
0
0

@watchmanmonitor wrote:

Continuing the discussion from An old Jive employee: So happy to discover Discourse!:

In case it's not clear, I'm a huge fan of discourse. I am frequently thinking of where else I can see it deployed.

There is a large jive deployment I have my eyes set on and wonder - how does discourse stack up against Jive lately?

  • Can they handle the same sheer user/post volume? (I'lll use hosted discourse for the comparison)

  • Is there anything Jive can do that discourse can't?

  • Is there anything Discourse can do that jive can't?

  • How do their external authentications mechanisms stack up?

Posts: 3

Participants: 2

Read full topic

Bootstrap Failed, out of memory error

$
0
0

@littleviolette wrote:

I tried searching through the forum for troubleshooting but couldn't find a similar error code that other people have encountered. Would someone shed light on what I have done wrong?

FAILED
--------------------
RuntimeError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' failed with return # <Process::Status: pid 318 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:105:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}    6a33a6d3658bf0bcba03364c855763ff6213a357b8190077daa6ddf9a9335bc1
FAILED TO BOOTSTRAP

I followed the standard installation procedure.
Many thanks in advance!

Posts: 18

Participants: 3

Read full topic

Viewing all 60721 articles
Browse latest View live




Latest Images