-
+
{#if thunk}
{/if}
diff --git a/src/app/components/Content.svelte b/src/app/components/Content.svelte
index 5ad2a75..e41c911 100644
--- a/src/app/components/Content.svelte
+++ b/src/app/components/Content.svelte
@@ -22,7 +22,6 @@
import Link from "@lib/components/Link.svelte"
import Icon from "@lib/components/Icon.svelte"
import Button from "@lib/components/Button.svelte"
- import Content from "@app/components/Content.svelte"
import ContentToken from "@app/components/ContentToken.svelte"
import ContentCode from "@app/components/ContentCode.svelte"
import ContentLinkInline from "@app/components/ContentLinkInline.svelte"
@@ -38,9 +37,9 @@
minLength?: number
maxLength?: number
showEntire?: boolean
- hideMedia?: boolean
+ hideMediaAtDepth?: number
expandMode?: string
- quoteProps?: Record
+ relays?: string[]
depth?: number
}
@@ -49,9 +48,9 @@
minLength = 500,
maxLength = 700,
showEntire = $bindable(false),
- hideMedia = false,
+ hideMediaAtDepth = 1,
expandMode = "block",
- quoteProps = {},
+ relays = [],
depth = 0,
}: Props = $props()
@@ -64,13 +63,13 @@
const isBlock = (i: number) => {
const parsed = fullContent[i]
- if (!parsed || hideMedia) return false
+ if (!parsed || hideMediaAtDepth <= depth) return false
if (isLink(parsed) && $userSettingValues.show_media && isStartOrEnd(i)) {
return true
}
- if ((isEvent(parsed) || isAddress(parsed)) && isStartOrEnd(i) && depth < 1) {
+ if ((isEvent(parsed) || isAddress(parsed)) && isStartOrEnd(i)) {
return true
}
@@ -108,7 +107,7 @@
: truncate(fullContent, {
minLength,
maxLength,
- mediaLength: hideMedia ? 20 : 200,
+ mediaLength: hideMediaAtDepth <= depth ? 20 : 200,
}),
)
@@ -151,11 +150,7 @@
{:else if isEvent(parsed) || isAddress(parsed)}
{#if isBlock(i)}
-
- {#snippet noteContent({event, minimal}: {event: TrustedEvent; minimal: boolean})}
-
- {/snippet}
-
+
{:else}
{#if $quote}
-
- {@render noteContent({event: $quote, minimal})}
+
+
{:else}
diff --git a/src/app/components/NoteContent.svelte b/src/app/components/NoteContent.svelte
new file mode 100644
index 0000000..cd83c82
--- /dev/null
+++ b/src/app/components/NoteContent.svelte
@@ -0,0 +1,8 @@
+
+
+
diff --git a/src/app/components/NoteItem.svelte b/src/app/components/NoteItem.svelte
index 4bc96c4..c1ef1c7 100644
--- a/src/app/components/NoteItem.svelte
+++ b/src/app/components/NoteItem.svelte
@@ -4,7 +4,7 @@
import {pubkey} from "@welshman/app"
import Icon from "@lib/components/Icon.svelte"
import EmojiButton from "@lib/components/EmojiButton.svelte"
- import Content from "@app/components/Content.svelte"
+ import NoteContent from "@app/components/NoteContent.svelte"
import NoteCard from "@app/components/NoteCard.svelte"
import ReactionSummary from "@app/components/ReactionSummary.svelte"
import {publishDelete, publishReaction} from "@app/commands"
@@ -26,7 +26,7 @@
-
+
diff --git a/src/app/components/ProfileInfo.svelte b/src/app/components/ProfileInfo.svelte
index 393329e..2858f04 100644
--- a/src/app/components/ProfileInfo.svelte
+++ b/src/app/components/ProfileInfo.svelte
@@ -8,5 +8,5 @@
{#if $profile}
-
+
{/if}
diff --git a/src/app/components/ThreadItem.svelte b/src/app/components/ThreadItem.svelte
index 65e01ae..48b0d62 100644
--- a/src/app/components/ThreadItem.svelte
+++ b/src/app/components/ThreadItem.svelte
@@ -32,7 +32,7 @@
{formatTimestamp(event.created_at)}
{/if}
-
+
Posted by
diff --git a/src/routes/settings/profile/+page.svelte b/src/routes/settings/profile/+page.svelte
index d1ac674..67eaa47 100644
--- a/src/routes/settings/profile/+page.svelte
+++ b/src/routes/settings/profile/+page.svelte
@@ -50,7 +50,7 @@
{#key $profile?.about}
-
+
{/key}
{#if $session?.email}
diff --git a/src/routes/spaces/[relay]/calendar/[id]/+page.svelte b/src/routes/spaces/[relay]/calendar/[id]/+page.svelte
index a411600..e007285 100644
--- a/src/routes/spaces/[relay]/calendar/[id]/+page.svelte
+++ b/src/routes/spaces/[relay]/calendar/[id]/+page.svelte
@@ -127,7 +127,7 @@
-
+
diff --git a/src/routes/spaces/[relay]/threads/[id]/+page.svelte b/src/routes/spaces/[relay]/threads/[id]/+page.svelte
index 9681784..1047bac 100644
--- a/src/routes/spaces/[relay]/threads/[id]/+page.svelte
+++ b/src/routes/spaces/[relay]/threads/[id]/+page.svelte
@@ -79,7 +79,7 @@
{/if}
-
+