mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13: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">
|
||||
{% if perma %}<span class="perma-item">{{ obj.published | format_time }}</span>
|
||||
{% 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 %}
|
||||
{% 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 %}
|
||||
|
||||
{% if session.logged_in %}
|
||||
|
|
Loading…
Reference in a new issue