From 8fcbdd0666ccf9b6a5494de35ff6fbc9f99e4393 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 23 Apr 2022 21:20:36 +0100 Subject: [PATCH] Add mentioned users to thread when replying too --- app/blueprints/threads/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/blueprints/threads/__init__.py b/app/blueprints/threads/__init__.py index 659a3778..5bdc3832 100644 --- a/app/blueprints/threads/__init__.py +++ b/app/blueprints/threads/__init__.py @@ -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)