mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 03:37:28 +01:00
Fix crash on mention on new thread
This commit is contained in:
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user