|
|
|
|
@ -22,6 +22,7 @@
@@ -22,6 +22,7 @@
|
|
|
|
|
import { formatDate, neventEncode } from "$lib/utils"; |
|
|
|
|
import { NDKRelaySetFromNDK } from "$lib/utils/nostrUtils"; |
|
|
|
|
import { parseBasicmarkup } from "$lib/utils/markup/basicMarkupParser"; |
|
|
|
|
import { processNostrIdentifiers } from "$lib/utils/nostrUtils"; |
|
|
|
|
import { repostContent } from "$lib/components/embedded_events/EmbeddedSnippets.svelte"; |
|
|
|
|
import { repostKinds } from "$lib/consts"; |
|
|
|
|
|
|
|
|
|
@ -841,7 +842,7 @@
@@ -841,7 +842,7 @@
|
|
|
|
|
<div class="text-xs text-gray-500 dark:text-gray-400 mb-1"> |
|
|
|
|
Comment: |
|
|
|
|
</div> |
|
|
|
|
{#await parseBasicmarkup(message.content.slice(0, 100) + (message.content.length > 100 ? "..." : "")) then parsed} |
|
|
|
|
{#await processNostrIdentifiers(message.content, ndk) then parsed} |
|
|
|
|
{@html parsed} |
|
|
|
|
{/await} |
|
|
|
|
</div> |
|
|
|
|
@ -849,7 +850,7 @@
@@ -849,7 +850,7 @@
|
|
|
|
|
</div> |
|
|
|
|
{:else} |
|
|
|
|
<!-- Regular content --> |
|
|
|
|
{#await parseBasicmarkup(message.content || "No content") then parsed} |
|
|
|
|
{#await processNostrIdentifiers(message.content || "No content", ndk) then parsed} |
|
|
|
|
{@html parsed} |
|
|
|
|
{/await} |
|
|
|
|
{/if} |
|
|
|
|
@ -951,7 +952,7 @@
@@ -951,7 +952,7 @@
|
|
|
|
|
<div class="text-xs text-gray-500 dark:text-gray-400 mb-1"> |
|
|
|
|
Comment: |
|
|
|
|
</div> |
|
|
|
|
{#await parseBasicmarkup(notification.content.slice(0, 100) + (notification.content.length > 100 ? "..." : "")) then parsed} |
|
|
|
|
{#await processNostrIdentifiers(notification.content, ndk) then parsed} |
|
|
|
|
{@html parsed} |
|
|
|
|
{/await} |
|
|
|
|
</div> |
|
|
|
|
@ -959,7 +960,7 @@
@@ -959,7 +960,7 @@
|
|
|
|
|
</div> |
|
|
|
|
{:else} |
|
|
|
|
<!-- Regular content --> |
|
|
|
|
{#await parseBasicmarkup(notification.content || "No content") then parsed} |
|
|
|
|
{#await processNostrIdentifiers(notification.content || "No content", ndk) then parsed} |
|
|
|
|
{@html parsed} |
|
|
|
|
{/await} |
|
|
|
|
{/if} |
|
|
|
|
|