Prevent mentioned users being added to private threads

This commit is contained in:
rubenwardy
2025-08-26 18:47:02 +01:00
parent acf9e16234
commit 310f1baa09

View File

@@ -254,6 +254,9 @@ def view(id):
if mentioned is None:
continue
if not thread.check_perm(mentioned, Permission.SEE_THREAD):
continue
msg = "Mentioned by {} in '{}'".format(current_user.display_name, thread.title)
add_notification(mentioned, current_user, NotificationType.THREAD_REPLY,
msg, thread.get_view_url(), thread.package)