fixes feed

This commit is contained in:
Christian Beutel
2025-07-11 17:13:30 +02:00
parent 237d12bfec
commit e8c7e7721a
6 changed files with 51 additions and 35 deletions

View File

@@ -172,13 +172,17 @@
<EmptyStateFeed></EmptyStateFeed>
{/if}
{#each feed.items as f}
<a
class="block"
href={(f.type === "trail" ? "/trail/view/" : "/lists/") +
`@${f.expand.author?.preferred_username}@${f.expand.author?.domain}/${f.item}`}
>
<FeedCard feedItem={f}></FeedCard>
</a>
{#if f.expand.item}
<a
class="block"
href={(f.type === "trail"
? "/trail/view/"
: "/lists/") +
`@${f.expand.author?.preferred_username}@${f.expand.author?.domain}/${f.item}`}
>
<FeedCard feedItem={f}></FeedCard>
</a>
{/if}
{/each}
</div>
{/if}