]> git.lizzy.rs Git - cheatdb.git/blobdiff - app/blueprints/threads/__init__.py
Add reviews
[cheatdb.git] / app / blueprints / threads / __init__.py
index a55d55e3364eae54f26cae9659f0acd4ffc43168..c0b878ccb329f15556b04e1febcb90b670db45eb 100644 (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)