Add reviews

Fixes #173
This commit is contained in:
rubenwardy
2020-07-09 04:10:09 +01:00
parent 9d033acfff
commit 307b8f8dde
9 changed files with 361 additions and 9 deletions

View File

@@ -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)