Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Discobot exception when site_contact_username is promoted #11666

Merged
merged 1 commit into from Jan 11, 2021

Conversation

riking
Copy link
Contributor

@riking riking commented Jan 8, 2021

Because the site admin is sending a message to themselves, there is only one user in the topic_allowed_users, and .last returns nil.
Attempt to recognize this situation and continue, or bail without doing anything if this somehow happens another way.

Because the site admin is sending a message to themselves, there is only one user in the topic_allowed_users, and `.last` returns nil.
Attempt to recognize this situation and continue, or bail without doing anything if this somehow happens another way.
@riking riking merged commit a88a246 into discourse:master Jan 11, 2021
@riking riking deleted the site-contact-promotion branch January 12, 2021 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants