aboutsummaryrefslogtreecommitdiff
path: root/app/blueprints/threads
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-10 22:23:52 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-10 22:23:52 +0100
commitb9386d5a47aace49afa99d4f3a36a895bea40697 (patch)
treec8d1d8ee75ec2adce1bbac2bbc5c117879e3a808 /app/blueprints/threads
parent1d8abd8f4b0f0249394ce3daedb84cbbfab56553 (diff)
downloadcheatdb-b9386d5a47aace49afa99d4f3a36a895bea40697.tar.xz
Use middleware to clear notifications
Fixes #70
Diffstat (limited to 'app/blueprints/threads')
-rw-r--r--app/blueprints/threads/__init__.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/app/blueprints/threads/__init__.py b/app/blueprints/threads/__init__.py
index 1455c5d..ad58545 100644
--- a/app/blueprints/threads/__init__.py
+++ b/app/blueprints/threads/__init__.py
@@ -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)