mirror of
https://github.com/minetest/contentdb.git
synced 2025-03-27 04:12:36 +01:00
Add mentioned users to thread when replying too
This commit is contained in:
@ -248,6 +248,8 @@ def view(id):
|
|||||||
addNotification(mentioned, current_user, NotificationType.THREAD_REPLY,
|
addNotification(mentioned, current_user, NotificationType.THREAD_REPLY,
|
||||||
msg, thread.getViewURL(), thread.package)
|
msg, thread.getViewURL(), thread.package)
|
||||||
|
|
||||||
|
thread.watchers.append(mentioned)
|
||||||
|
|
||||||
msg = "New comment on '{}'".format(thread.title)
|
msg = "New comment on '{}'".format(thread.title)
|
||||||
addNotification(thread.watchers, current_user, NotificationType.THREAD_REPLY, msg, thread.getViewURL(), thread.package)
|
addNotification(thread.watchers, current_user, NotificationType.THREAD_REPLY, msg, thread.getViewURL(), thread.package)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user