diff --git a/package-lock.json b/package-lock.json index fa1d3ca..88c9eab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "aitherboard", - "version": "0.3.3", + "version": "0.3.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "aitherboard", - "version": "0.3.3", + "version": "0.3.4", "license": "MIT", "dependencies": { "@codemirror/autocomplete": "^6.20.0", diff --git a/package.json b/package.json index 1898425..e1b8fc7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aitherboard", - "version": "0.3.3", + "version": "0.3.4", "type": "module", "author": "silberengel@gitcitadel.com", "description": "A decentralized messageboard built on the Nostr protocol.", diff --git a/src/lib/components/write/CreateEventForm.svelte b/src/lib/components/write/CreateEventForm.svelte index 1c3ac4a..ab2cb25 100644 --- a/src/lib/components/write/CreateEventForm.svelte +++ b/src/lib/components/write/CreateEventForm.svelte @@ -211,6 +211,7 @@ const helpText = $derived(kindMetadata.helpText); const isKind30040 = $derived(selectedKind === 30040); const isKind10895 = $derived(selectedKind === 10895); + const allPublishRelays = $derived([...new Set([...config.documentationPublishRelays, ...config.graspRelays])]); // Clear content for metadata-only kinds (but preserve content when cloning/editing) $effect(() => { @@ -289,7 +290,10 @@ const autoTagsResult = await autoExtractTags({ content: contentWithUrls, existingTags: allTags, - kind: effectiveKind + kind: effectiveKind, + // Skip p-tag extraction for kind 0 (profile/metadata) events + includeMentions: effectiveKind !== KIND.METADATA, + includeNostrLinks: effectiveKind !== KIND.METADATA }); allTags.push(...autoTagsResult.tags); @@ -357,7 +361,10 @@ const autoTagsResult = await autoExtractTags({ content: contentWithUrls, existingTags: allTags, - kind: effectiveKind + kind: effectiveKind, + // Skip p-tag extraction for kind 0 (profile/metadata) events + includeMentions: effectiveKind !== KIND.METADATA, + includeNostrLinks: effectiveKind !== KIND.METADATA }); allTags.push(...autoTagsResult.tags); @@ -597,7 +604,10 @@ const autoTagsResult = await autoExtractTags({ content: contentWithUrls, existingTags: previewTags, - kind: effectiveKind + kind: effectiveKind, + // Skip p-tag extraction for kind 0 (profile/metadata) events + includeMentions: effectiveKind !== KIND.METADATA, + includeNostrLinks: effectiveKind !== KIND.METADATA }); previewTags.push(...autoTagsResult.tags); @@ -796,7 +806,7 @@ Events will be published to: