diff --git a/src/app/components/Pin.svelte b/src/app/components/Pin.svelte
index d7cccd2a..4b74aa2c 100644
--- a/src/app/components/Pin.svelte
+++ b/src/app/components/Pin.svelte
@@ -49,6 +49,9 @@
{pin.title}
{/if}
{/if}
+ {#if pin.description}
+
+ {/if}
{#if pin.value[0] === "i"}
{:else}
diff --git a/src/app/components/PinAdd.svelte b/src/app/components/PinAdd.svelte
index 0e274722..d89c0903 100644
--- a/src/app/components/PinAdd.svelte
+++ b/src/app/components/PinAdd.svelte
@@ -10,12 +10,12 @@
const {url, address, reference}: Props = $props()
- const submit = async ({title, topics, value}: PinFormValues) => {
+ const submit = async ({title, topics, value, content}: PinFormValues) => {
const params = referenceToPin(value)
if (!params) return "Please enter a valid URL or nostr link."
- return createPin(url, {...params, boards: [address], title, topics})
+ return createPin(url, {...params, boards: [address], title, topics, description: content})
}
diff --git a/src/app/components/PinEdit.svelte b/src/app/components/PinEdit.svelte
index 80caae8b..d823bf27 100644
--- a/src/app/components/PinEdit.svelte
+++ b/src/app/components/PinEdit.svelte
@@ -9,7 +9,7 @@
const {url, pin}: Props = $props()
- const submit = async ({title, topics, value}: PinFormValues) => {
+ const submit = async ({title, topics, value, content}: PinFormValues) => {
const params = referenceToPin(value)
if (!params) return "Please enter a valid URL or nostr link."
@@ -21,6 +21,7 @@
boards: pin.boards,
title,
topics,
+ description: content,
})
}
@@ -30,5 +31,10 @@
heading="Edit Link"
action="Save changes"
successMessage="Link updated!"
- values={{title: pin.title, topics: pin.topics, value: pinToReference(pin)}}
+ values={{
+ title: pin.title,
+ topics: pin.topics,
+ value: pinToReference(pin),
+ content: pin.description,
+ }}
{submit} />
diff --git a/src/app/components/PinForm.svelte b/src/app/components/PinForm.svelte
index e169ac7d..4a70ebea 100644
--- a/src/app/components/PinForm.svelte
+++ b/src/app/components/PinForm.svelte
@@ -3,11 +3,14 @@
title: string
topics: string[]
value: string
+ content: string
}
@@ -76,6 +94,29 @@
placeholder="Optional title" />
{/snippet}
+
+ {#snippet label()}
+ Description
+ {/snippet}
+ {#snippet input()}
+
+
+
+
+
+
+ {/snippet}
+
{#snippet label()}
Topics
@@ -101,7 +142,10 @@
Go back
-