Skip to content

Commit

Permalink
Fix another unchecked watcher append
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Sep 28, 2024
1 parent 6429b2e commit 5a173ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/blueprints/packages/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5a173ee

Please sign in to comment.