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