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 }