Skip to content

Commit

Permalink
Fix crash on mention on new thread
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Sep 28, 2024
1 parent 93f36ad commit 6429b2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/blueprints/threads/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@ def new():
add_notification(mentioned, current_user, NotificationType.NEW_THREAD,
msg, thread.get_view_url(), thread.package)

thread.watchers.append(mentioned)
if mentioned not in thread.watchers:
thread.watchers.append(mentioned)

notif_msg = "New thread '{}'".format(thread.title)
if package is not None:
Expand Down

0 comments on commit 6429b2e

Please sign in to comment.