diff --git a/app/templates/flagged.html b/app/templates/flagged.html index d7edc43..7780f26 100644 --- a/app/templates/flagged.html +++ b/app/templates/flagged.html @@ -118,36 +118,20 @@ {% if item.author_handle %} - - @{{ item.author_handle }} - - {% else %} - {{ item.author_did[:30] }}… - {% endif %} - {% if item.item_type == 'mention' and item.mentioned_handle %} - - - @{{ item.mentioned_handle }} + + {{ item.author_handle }} {% endif %} - {% if item.source_type == 'post' %} - + {% if item.url %} + {{ item.text | truncate_text(200) }} {% else %} - {# Convert at://did:plc:xxx/app.bsky.feed.post/yyy to https://bsky.app/profile/handle/post/yyy #} - {% set uri_parts = item.item_id.replace('at://', '').split('/') %} - {% if uri_parts|length >= 3 and item.author_handle %} - - {{ item.text | truncate_text(200) }} - - {% else %} - {{ item.text | truncate_text(200) }} - {% endif %} + {{ item.text | truncate_text(200) }} {% endif %}