From 3da6c0c1977d60ebeb4c9260ad963fff531bb047 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 26 Aug 2021 12:39:44 +0200 Subject: [PATCH] fdfd --- files/routes/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/users.py b/files/routes/users.py index 7fb3a7838..86cd8d13d 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -126,7 +126,7 @@ def messagereply(v, username, id): notif = Notification(comment_id=new_comment.id, user_id=user.id) g.db.add(notif) - if request.referrer == f'https://{site}/notifications': return redirect("/notifications?all=true") + if request.referrer.endswith('/notifications'): return redirect("/notifications?all=true") else: return redirect(request.referrer) @app.get("/songs/")