[% IF boost || (notif && notif.account) %]
[% format_username(boost || notif.account) %] [% IF notif && notif.type == 'favourite' %] [% lang('NOTIF_LIKED') %] [% ELSIF boost || (notif && notif.type == 'reblog') %] [% lang('NOTIF_REPEATED') %] [% ELSIF boost || (notif && notif.type == 'emoji reaction') %] [%# Yes, it can be a custom emoji too %] [% lang('NOTIF_REACTED_WITH') %] [% notif.emoji %] [% END %] [% IF notif && notif.type == 'favourite' %] [% icon('favourite') %] [% ELSIF boost || (notif && notif.type == 'boost') %] [%# It's a repeat %] [% icon('repeat') %] [% END %]
[% END %]
[% format_username(status.account) %] [% status.account.acct %]
[%# Note: The id may actually (99.5% of the time) be the acct %] [% IF status.in_reply_to_id %] In reply to [% status.pleroma.in_reply_to_account_acct || status.in_reply_to_account_id %] [% END %] [% IF status.spoiler_text %] [% emojify(escape(status.spoiler_text), status.emojis) %] [% END %] [% greentextify(emojify(fix_mentions(status.content), status.emojis)) %] [% IF status.media_attachments %]
[% FOR att IN status.media_attachments %] [% make_att(ssn, data, att, status.sensitive) %] [% END %]
[% END %] [%# TODO {{%s:interactions}} %] [% IF status.pleroma.emoji_reactions %]
[% FOR emo IN status.pleroma.emoji_reactions %] [% make_emoji(ssn, data, status.id, emo) %] [% END %]
[% END %]
[% UNLESS notif %]
[% IF ssn.config.stat_oneclicksoftware %]
[% END %] [% icon('emoji') %] [% IF emoji_picker -%] [% emoji_picker %] [%- END %]
[% END %] [%# Put these at the end, incase someone wants to move status icons to the beginning (this makes it easier %] [% icon('expand') %] [%- rel_to_str(status.created_at) -%] [% IF status.application && status.application.name && !notif %] [% IF status.application.url %] [% status.application.name %] [% ELSE %] [% status.application.name %] [% END %] [% END %]
[% IF ssn.logged_in %] [% make_postbox(ssn, data, status) %] [% END %]