fdfd
This commit is contained in:
parent
632ad4cc73
commit
ebc4a54478
2 changed files with 13 additions and 11 deletions
|
@ -126,8 +126,9 @@ def messagereply(v, username, id):
|
|||
notif = Notification(comment_id=new_comment.id, user_id=user.id)
|
||||
g.db.add(notif)
|
||||
|
||||
if request.referrer.endswith('/notifications'): return redirect("/notifications?all=true")
|
||||
if not request.referrer or request.referrer.endswith('/notifications'): return redirect("/notifications?all=true")
|
||||
else: return redirect(request.referrer)
|
||||
|
||||
|
||||
@app.get("/songs/<id>")
|
||||
def songs(id):
|
||||
|
@ -187,7 +188,8 @@ def message2(v, username):
|
|||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
return redirect(request.referrer)
|
||||
if request.referrer: return redirect(request.referrer)
|
||||
else: return redirect(f"/@{username}")
|
||||
|
||||
@app.get("/2faqr/<secret>")
|
||||
@auth_required
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue