-
-
-
+
+
+ {#if annotated.length > 1}
+
+ Show {annotated.length} link previews
+
+ {/if}
- {#if annotated.length > 1}
-
- Show all {annotated.length} link previews
-
- {/if}
-
{/if}
{#if showModal}
-
-
- {#each annotated as link}
-
- {/each}
-
-
+
+
+ {#each annotated as link}
+
+ {/each}
+
+
{/if}
diff --git a/src/partials/CarouselItem.svelte b/src/partials/CarouselItem.svelte
index bda43e89..4ff0502f 100644
--- a/src/partials/CarouselItem.svelte
+++ b/src/partials/CarouselItem.svelte
@@ -1,13 +1,14 @@
+
+
+ {#each content as { type, value }}
+ {#if type === "br"}
+ {@html value}
+ {:else if type === "link"}
+
+ {value.replace(/https?:\/\/(www\.)?/, "")}
+
+ {:else if type.startsWith("nostr:")}
+
+ {#if value.pubkey}
+ {displayPerson(getPersonWithFallback(value.pubkey))}
+ {:else if value.id}
+ event {value.id}
+ {:else}
+ {value.entity.slice(0, 10) + "..."}
+ {/if}
+
+ {:else}
+ {value}
+ {/if}
+ {/each}
+
diff --git a/src/partials/PersonInfo.svelte b/src/partials/PersonInfo.svelte
index e8a3a033..fd173b5a 100644
--- a/src/partials/PersonInfo.svelte
+++ b/src/partials/PersonInfo.svelte
@@ -1,11 +1,11 @@
@@ -72,6 +103,16 @@
{value.replace(/https?:\/\/(www\.)?/, "")}
+ {:else if type.startsWith("nostr:")}
+
+ {#if value.pubkey}
+ {displayPerson(getPersonWithFallback(value.pubkey))}
+ {:else if value.id}
+ event {value.id}
+ {:else}
+ {value.entity.slice(0, 10) + "..."}
+ {/if}
+
{:else if type === "mention"}
{@const pubkey = getMentionPubkey(value)}
{#if pubkey}
@@ -87,8 +128,35 @@
{/each}
{#if user.getSetting("showMedia") && links.length > 0}
-
diff --git a/src/views/notes/NoteCreate.svelte b/src/views/notes/NoteCreate.svelte
index b4bb81f1..a83017fb 100644
--- a/src/views/notes/NoteCreate.svelte
+++ b/src/views/notes/NoteCreate.svelte
@@ -23,6 +23,7 @@
import {publishWithToast} from "src/app"
export let pubkey = null
+ export let nevent = null
let image = null
let compose = null
@@ -94,6 +95,10 @@
if (pubkey && pubkey !== user.getPubkey()) {
compose.mention(getPersonWithFallback(pubkey))
}
+
+ if (nevent) {
+ compose.nevent("nostr:" + nevent)
+ }
})
diff --git a/src/views/person/PersonSummary.svelte b/src/views/person/PersonSummary.svelte
index 22d37d4a..c2590f68 100644
--- a/src/views/person/PersonSummary.svelte
+++ b/src/views/person/PersonSummary.svelte
@@ -1,7 +1,6 @@