]> git.lizzy.rs Git - cheatdb.git/blobdiff - app/blueprints/threads/__init__.py
Use middleware to clear notifications
[cheatdb.git] / app / blueprints / threads / __init__.py
index 1455c5df0fa40f03f3b467c046f7db103dc319a7..ad58545877f79b48d463a1c830bc9131dc8ed945 100644 (file)
@@ -82,8 +82,6 @@ def unsubscribe(id):
 
 @bp.route("/threads/<int:id>/", methods=["GET", "POST"])
 def view(id):
-       clearNotifications(url_for("threads.view", id=id))
-
        thread = Thread.query.get(id)
        if thread is None or not thread.checkPerm(current_user, Permission.SEE_THREAD):
                abort(404)