mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 11:14:28 +00:00
parent
da029c1566
commit
c573f48873
2 changed files with 2 additions and 2 deletions
2
app.py
2
app.py
|
@ -472,7 +472,7 @@ def admin_login():
|
||||||
session["challenge"] = None
|
session["challenge"] = None
|
||||||
|
|
||||||
session["logged_in"] = True
|
session["logged_in"] = True
|
||||||
return redirect(request.args.get("redirect") or "/admin/notifications")
|
return redirect(request.args.get("redirect") or url_for("admin_notifications"))
|
||||||
else:
|
else:
|
||||||
abort(401)
|
abort(401)
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
{% if ui and session.logged_in %}
|
{% if ui and session.logged_in %}
|
||||||
|
|
||||||
{% set aid = obj.id | quote_plus %}
|
{% set aid = obj.id | quote_plus %}
|
||||||
<a class="bar-item" href="/new?reply={{ aid }}">reply</a>
|
<a class="bar-item" href="/admin/new?reply={{ aid }}">reply</a>
|
||||||
|
|
||||||
{% set perma_id = obj.id | permalink_id %}
|
{% set perma_id = obj.id | permalink_id %}
|
||||||
{% set redir = request.path + "#activity-" + perma_id %}
|
{% set redir = request.path + "#activity-" + perma_id %}
|
||||||
|
|
Loading…
Reference in a new issue