{# "Liked" / "Reposted" line for likes and reposts (v2.5.0) #} {% macro reaction(note) %} {% if note.reacts_to %} {% set ctx = note.context if note.context is defined else None %} {% if ctx and ctx.title %}{% set label = ctx.title %}{% elif ctx and ctx.content_snippet %}{% set label = ctx.content_snippet|striptags|truncate(90) %}{% elif ctx and (ctx.author_name or ctx.site_name) %}{% set label = 'a post' %}{% else %}{% set label = note.reacts_to %}{% endif %}
{% if note.kind == 'like' %}★ Liked{% else %}🔁 Reposted{% endif %} {{ label }} {% if ctx and (ctx.author_name or ctx.site_name) %}by {{ ctx.author_name or ctx.site_name }}{% endif %}
{% endif %} {% endmacro %}