Add Announce support for the lookup

This commit is contained in:
Thomas Sileo
2018-07-29 20:10:15 +02:00
parent 45bfcc2502
commit 6cc30f622a
2 changed files with 17 additions and 1 deletions

View File

@@ -31,6 +31,13 @@
{{ utils.display_note(data.object, ui=True) }}
{% elif data | has_type('Note') %}
{{ utils.display_note(data, ui=True) }}
{% elif data | has_type('Announce') %}
{% set boost_actor = meta.actor %}
<p style="margin-left:65px;padding-bottom:5px;">
<span class="bar-item-no-hover"><a style="color:#808080;" href="{{ boost_actor.url | get_url }}">{{ boost_actor.name }}</a> boosted</span>
</p>
{{ utils.display_note(meta.object, ui=False, meta={'actor': meta.object_actor}) }}
{% endif %}
</div>
{% endif %}