mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 11:47:28 +01:00
Add mentioned users to thread when replying too
This commit is contained in:
parent
c7d251b206
commit
8fcbdd0666
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user