aboutsummaryrefslogtreecommitdiff
path: root/app/blueprints/threads/__init__.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-09 04:10:09 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-09 04:10:09 +0100
commit307b8f8ddea30cb44ad02170b40dd3c0d1d3d6c3 (patch)
tree50572120643ec9f6f5da9b68c507bd4b61d1d5ff /app/blueprints/threads/__init__.py
parent9d033acffff319e4f38b98a09ff2519f3f36dc88 (diff)
downloadcheatdb-307b8f8ddea30cb44ad02170b40dd3c0d1d3d6c3.tar.xz
Add reviews
Fixes #173
Diffstat (limited to 'app/blueprints/threads/__init__.py')
-rw-r--r--app/blueprints/threads/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/blueprints/threads/__init__.py b/app/blueprints/threads/__init__.py
index a55d55e..c0b878c 100644
--- a/app/blueprints/threads/__init__.py
+++ b/app/blueprints/threads/__init__.py
@@ -206,7 +206,8 @@ def new():
notif_msg = None
if package is not None:
notif_msg = "New thread '{}' on package {}".format(thread.title, package.title)
- triggerNotif(package.author, current_user, notif_msg, url_for("threads.view", id=thread.id))
+ for maintainer in package.maintainers:
+ triggerNotif(maintainer, current_user, notif_msg, url_for("threads.view", id=thread.id))
else:
notif_msg = "New thread '{}'".format(thread.title)