Fix double @ symbols and make status text clickable

- Fixed author display to show single @ (was showing @@account)
- Made status text clickable linking to full Mastodon post
- Fixed author links to point to Mastodon instances instead of Bluesky

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Pieter 2026-03-31 10:03:05 +02:00
parent cc11a1272d
commit 9919d2fc04

View file

@ -118,37 +118,21 @@
<!-- Author --> <!-- Author -->
<td class="col-author"> <td class="col-author">
{% if item.author_handle %} {% if item.author_handle %}
<a href="https://bsky.app/profile/{{ item.author_handle }}" target="_blank" rel="noopener" class="author-link"> <a href="https://{{ item.author_instance }}/@{{ item.author_username }}" target="_blank" rel="noopener" class="author-link">
@{{ item.author_handle }} {{ item.author_handle }}
</a>
{% else %}
<span class="author-did" title="{{ item.author_did }}">{{ item.author_did[:30] }}…</span>
{% endif %}
{% if item.item_type == 'mention' and item.mentioned_handle %}
<span class="mention-arrow"></span>
<a href="https://bsky.app/profile/{{ item.mentioned_handle }}" target="_blank" rel="noopener" class="author-link">
@{{ item.mentioned_handle }}
</a> </a>
{% endif %} {% endif %}
</td> </td>
<!-- Content Text --> <!-- Content Text -->
<td class="col-text"> <td class="col-text">
{% if item.source_type == 'post' %} {% if item.url %}
<a href="{{ url_for('statuses.detail', encoded_uri=encode_uri(item.item_id)) }}" class="content-link"> <a href="{{ item.url }}" target="_blank" rel="noopener" class="content-link">
{{ item.text | truncate_text(200) }}
</a>
{% 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 %}
<a href="https://bsky.app/profile/{{ item.author_handle }}/post/{{ uri_parts[2] }}" target="_blank" rel="noopener" class="content-link">
{{ item.text | truncate_text(200) }} {{ item.text | truncate_text(200) }}
</a> </a>
{% else %} {% else %}
<span class="content-text">{{ item.text | truncate_text(200) }}</span> <span class="content-text">{{ item.text | truncate_text(200) }}</span>
{% endif %} {% endif %}
{% endif %}
</td> </td>
<!-- Score with Bar --> <!-- Score with Bar -->