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:
parent
ac2b50751b
commit
8989c5728d
1 changed files with 5 additions and 21 deletions
|
|
@ -118,36 +118,20 @@
|
||||||
<!-- 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) }}
|
{{ item.text | truncate_text(200) }}
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
{# Convert at://did:plc:xxx/app.bsky.feed.post/yyy to https://bsky.app/profile/handle/post/yyy #}
|
<span class="content-text">{{ item.text | truncate_text(200) }}</span>
|
||||||
{% 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) }}
|
|
||||||
</a>
|
|
||||||
{% else %}
|
|
||||||
<span class="content-text">{{ item.text | truncate_text(200) }}</span>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue