From 2de5c41d8dc722273bdf975656a897cc65049825 Mon Sep 17 00:00:00 2001
From: mybearworld <130385691+mybearworld@users.noreply.github.com>
Date: Sat, 15 Jun 2024 21:08:53 +0200
Subject: [PATCH] Don't show images in replies
---
src/components/Markdown.tsx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/components/Markdown.tsx b/src/components/Markdown.tsx
index f286813..b123e49 100644
--- a/src/components/Markdown.tsx
+++ b/src/components/Markdown.tsx
@@ -153,7 +153,9 @@ export const Markdown = (mdProps: MarkdownProps) => {
return ;
},
image: (src, alt, title) =>
- hostWhitelist.some((host) => src.startsWith(host)) ? (
+ mdProps.inline ? undefined : hostWhitelist.some((host) =>
+ src.startsWith(host),
+ ) ? (
![{alt}]({src})