Fix another unchecked watcher append

This commit is contained in:
rubenwardy 2024-09-28 19:13:10 +01:00
parent 6429b2e26d
commit 5a173ee18b

@ -572,7 +572,7 @@ def edit_maintainers(package):
for user in users:
if not user in package.maintainers:
if thread:
if thread and user not in thread.watchers:
thread.watchers.append(user)
add_notification(user, current_user, NotificationType.MAINTAINER,
"Added you as a maintainer of {}".format(package.title), package.get_url("packages.view"), package)