From b9386d5a47aace49afa99d4f3a36a895bea40697 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 10 Jul 2020 22:23:52 +0100 Subject: Use middleware to clear notifications Fixes #70 --- app/blueprints/threads/__init__.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'app/blueprints/threads/__init__.py') 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//", 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) -- cgit v1.2.3