This commit is contained in:
Aevann1 2021-08-31 18:50:06 +02:00
parent a82158404d
commit 0ee2aea149
3 changed files with 219 additions and 177 deletions

View file

@ -200,9 +200,11 @@ def messagereply(v, username, id):
cache.delete_memoized(User.notification_messages, user)
if not request.referrer or request.referrer.endswith('/notifications'): return redirect(f"/notifications?all=true#comment-{id}")
else: return redirect(f"{request.referrer}#comment-{id}")
return jsonify({"html": render_template("comments.html",
v=v,
comments=[c],
render_replies=False,
)})
@app.get("/2faqr/<secret>")
@auth_required