Update hashtag preference kind

This commit is contained in:
thePR0M3TH3AN committed 2025-11-12 20:15:55 -05:00
1 parent 6ae8e6ee19
commit 05c8b1a486
2 files changed
+9 -4

No files matched your search

+2 -2
View File
@@ -421,7 +421,7 @@ const BASE_SCHEMAS = {
[NOTE_TYPES.HASHTAG_PREFERENCES]: {
type: NOTE_TYPES.HASHTAG_PREFERENCES,
label: "Hashtag preferences",
kind: 30005,
kind: 30015,
identifierTag: {
name: "d",
value: "bitvid:tag-preferences",
@@ -1555,7 +1555,7 @@ export function buildHashtagPreferenceEvent({
}
appendSchemaTags(tags, schema);
return {
kind: schema?.kind ?? 30005,
kind: schema?.kind ?? 30015,
pubkey,
created_at,
tags,
+7 -2
View File
@@ -4,7 +4,11 @@ import {
requestDefaultExtensionPermissions,
} from "../nostrClientFacade.js";
import { getActiveSigner } from "../nostr/index.js";
import { buildHashtagPreferenceEvent } from "../nostrEventSchemas.js";
import {
buildHashtagPreferenceEvent,
getNostrEventSchema,
NOTE_TYPES,
} from "../nostrEventSchemas.js";
import {
publishEventToRelays,
assertAnyRelayAccepted,
@@ -331,8 +335,9 @@ class HashtagPreferencesService {
return;
}
const schema = getNostrEventSchema(NOTE_TYPES.HASHTAG_PREFERENCES);
const filter = {
kinds: [30005],
kinds: [schema?.kind ?? 30015],
authors: [normalized],
"#d": [HASHTAG_IDENTIFIER],
limit: 50,