diff --git a/src/components/embeds/GIFPlayer.svelte b/src/components/embeds/GIFPlayer.svelte
index 9ec72ca..9aa886a 100644
--- a/src/components/embeds/GIFPlayer.svelte
+++ b/src/components/embeds/GIFPlayer.svelte
@@ -1,12 +1,26 @@
-
-

-
+{#if !showsPlaceholder}
+
+
+
+{:else}
+
+{/if}
diff --git a/src/components/embeds/LinkComponent.svelte b/src/components/embeds/LinkComponent.svelte
index 286a8f3..8236294 100644
--- a/src/components/embeds/LinkComponent.svelte
+++ b/src/components/embeds/LinkComponent.svelte
@@ -9,9 +9,8 @@
let { embed }: { embed: InlineLinkEmbed | RawLinkEmbed } = $props();
let { post } = getPostContext();
- let displayedGIF: { gif: string, thumb: string} | undefined = $state();
-
let parsedURL = $derived(embed.url ? parseHTTPURL(embed.url) : undefined);
+ let isGIF = $derived(parsedURL ? GIF_DOMAINS.includes(parsedURL.hostname) : false);
let thumbnailURL = $derived.by(() => {
if (embed instanceof RawLinkEmbed && embed.thumb) {
@@ -23,20 +22,13 @@
return undefined;
});
-
- function onClick(e: Event, url: URL) {
- if (GIF_DOMAINS.includes(url.hostname) && thumbnailURL) {
- e.preventDefault();
- displayedGIF = { gif: url.href, thumb: thumbnailURL };
- }
- }
-{#if displayedGIF}
-
-{:else}
- {#if parsedURL}
- onClick(e, parsedURL)}>
+{#if parsedURL}
+ {#if isGIF && thumbnailURL}
+
+ {:else}
+
{parsedURL.hostname}
{embed.title || embed.url}
@@ -46,9 +38,9 @@
{/if}
- {:else}
-
- [Link: {embed.url}]
-
{/if}
+{:else}
+
+ [Link: {embed.url}]
+
{/if}