From 84f8794d7c667eb231c4b11c377c0ea0c98d9a2b Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Thu, 25 Sep 2025 10:12:58 -0700 Subject: [PATCH] Make link previews less aggressive --- src/app/components/Content.svelte | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/components/Content.svelte b/src/app/components/Content.svelte index 9d2c5610..f6c81578 100644 --- a/src/app/components/Content.svelte +++ b/src/app/components/Content.svelte @@ -69,11 +69,11 @@ if (!parsed || hideMediaAtDepth <= depth) return false - if (isLink(parsed) && $userSettingsValues.show_media && isStartOrEnd(i)) { + if (isLink(parsed) && $userSettingsValues.show_media && isStartAndEnd(i)) { return true } - if ((isEvent(parsed) || isAddress(parsed)) && isStartOrEnd(i)) { + if ((isEvent(parsed) || isAddress(parsed)) && isStartAndEnd(i)) { return true } @@ -95,8 +95,6 @@ const isStartAndEnd = (i: number) => isStart(i) && isEnd(i) - const isStartOrEnd = (i: number) => isStart(i) || isEnd(i) - const ignoreWarning = () => { warning = null }