mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 11:14:28 +00:00
Fix the permalink when there's no URL
This commit is contained in:
parent
cf46ddcb60
commit
f6dbc41e13
1 changed files with 2 additions and 2 deletions
|
@ -89,10 +89,10 @@
|
||||||
<div class="bottom-bar">
|
<div class="bottom-bar">
|
||||||
{% if perma %}<span class="perma-item">{{ obj.published | format_time }}</span>
|
{% if perma %}<span class="perma-item">{{ obj.published | format_time }}</span>
|
||||||
{% if not (obj.id | is_from_outbox) %}
|
{% if not (obj.id | is_from_outbox) %}
|
||||||
<a class ="bar-item" href="{{ obj.url | get_url }}">permalink</a>
|
<a class ="bar-item" href="{{ obj | url_or_id | get_url }}">permalink</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<a class ="bar-item" href="{{ obj.url | get_url }}">permalink</a>
|
<a class ="bar-item" href="{{ obj | url_or_id | get_url }}">permalink</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if session.logged_in %}
|
{% if session.logged_in %}
|
||||||
|
|
Loading…
Reference in a new issue