mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Update hashtag preference kind
This commit is contained in:
1 parent
6ae8e6ee19
commit
05c8b1a486
2 files changed
+9
-4
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user