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: should not receive topic invites from ignored users. #14746

Merged
merged 4 commits into from Oct 28, 2021

Conversation

vinothkannans
Copy link
Member

Previously, ignored users can send notifications by inviting the ignorer to topics or PMs.

Previously, ignored users can send notifications by inviting the ignorer to topics or PMs.
@eviltrout
Copy link
Contributor

I know in the past we discussed hiding that people had ignored you, because it could be seen as an abuse vector. Maybe it would be better to silently fail here rather than show a message?

.joins(:muted_user)
.where('NOT admin AND NOT moderator')
.exists?
raise NotAllowed.new(I18n.t("topic_invite.muted_invitee"))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be better to silently fail here rather than show a message?

@eviltrout we should do the same for muted users too, right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think that's a good idea.

@vinothkannans
Copy link
Member Author

@eviltrout it's done.

@vinothkannans vinothkannans merged commit c62242c into main Oct 28, 2021
@vinothkannans vinothkannans deleted the invite-ignored branch October 28, 2021 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants