diff --git a/src/lib/components/lemmy/post/helpers.ts b/src/lib/components/lemmy/post/helpers.ts
index df4e079a..0d5c59e6 100644
--- a/src/lib/components/lemmy/post/helpers.ts
+++ b/src/lib/components/lemmy/post/helpers.ts
@@ -41,6 +41,7 @@ export const optimizeImageURL = (
)
return url.toString()
} catch (e) {
+ console.log(e)
return urlStr
}
}
diff --git a/src/lib/components/lemmy/post/media/PostMediaCompact.svelte b/src/lib/components/lemmy/post/media/PostMediaCompact.svelte
index 2a842f7c..20de39ca 100644
--- a/src/lib/components/lemmy/post/media/PostMediaCompact.svelte
+++ b/src/lib/components/lemmy/post/media/PostMediaCompact.svelte
@@ -1,5 +1,9 @@
-{#if url}
+{#if optimizedURL}
})