Fix crash on mention on new thread

This commit is contained in:
rubenwardy 2024-09-28 19:06:50 +01:00
parent 93f36adfea
commit 6429b2e26d

@ -367,7 +367,8 @@ def new():
add_notification(mentioned, current_user, NotificationType.NEW_THREAD, add_notification(mentioned, current_user, NotificationType.NEW_THREAD,
msg, thread.get_view_url(), thread.package) 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) notif_msg = "New thread '{}'".format(thread.title)
if package is not None: if package is not None: