Add mentioned users to thread when replying too

master
rubenwardy 2022-04-23 21:20:36 +01:00
parent c7d251b206
commit 8fcbdd0666
1 changed files with 2 additions and 0 deletions

View File

@ -248,6 +248,8 @@ def view(id):
addNotification(mentioned, current_user, NotificationType.THREAD_REPLY,
msg, thread.getViewURL(), thread.package)
thread.watchers.append(mentioned)
msg = "New comment on '{}'".format(thread.title)
addNotification(thread.watchers, current_user, NotificationType.THREAD_REPLY, msg, thread.getViewURL(), thread.package)