master
Aevann1 2021-08-26 12:39:18 +02:00
parent 9584e0b8e1
commit 5c5a45b6d5
1 changed files with 1 additions and 2 deletions

View File

@ -126,8 +126,7 @@ def messagereply(v, username, id):
notif = Notification(comment_id=new_comment.id, user_id=user.id)
g.db.add(notif)
print(request.referrer)
if request.referrer == '/notifications': return redirect("/notifications?all=true")
if request.referrer == f'https://{site}/notifications': return redirect("/notifications?all=true")
else: return redirect(request.referrer)
@app.get("/songs/<id>")