diff --git a/frontend/src/lib/components/TweetCard.svelte b/frontend/src/lib/components/TweetCard.svelte index 8cf1aa6..8305076 100644 --- a/frontend/src/lib/components/TweetCard.svelte +++ b/frontend/src/lib/components/TweetCard.svelte @@ -9,16 +9,26 @@ // article.tweet.media is undefined for tweets published before this field existed — // older rows in the DB weren't backfilled, so this can't assume it's always an array. const media = $derived(article.tweet?.media?.slice(0, 4) ?? []); + // The card's own href — clicking the frame goes to the original tweet, not our + // internal article page (there's no separate "full article" for a tweet anyway). + const tweetUrl = $derived(article.sources[0]?.link ?? `/article/${article.id}`); - // Native