Add mentioned users to thread when replying too

This commit is contained in:
rubenwardy 2022-04-23 21:20:36 +01:00
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)