Skip to content

Commit 275c4b0

Browse files
committed
fix: Add 'name' tag to NIP-78 events for relay compatibility
ISSUE: shu01.shugur.net relay rejecting cart events Error: 'NIP validation failed: application-specific data must have name field' FIX: Added ['name', 'Culture Bridge Settings'] tag to event structure NIP-78 Compliance: - Some relays require a human-readable 'name' tag - Helps relays categorize and display application data - Standards compliance for better relay support Event structure now includes: - ['d', 'culture-bridge-settings'] - identifier - ['name', 'Culture Bridge Settings'] - human-readable name (NEW) - ['p', userPubkey] - user reference - ['t', 'culture-bridge'] - discovery tag
1 parent e8fab2a commit 275c4b0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/services/nostr/NostrEventService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,9 +456,10 @@ export class NostrEventService {
456456

457457
const now = Math.floor(Date.now() / 1000);
458458

459-
// Base tags: d tag (NIP-33), pubkey reference, and discovery tag
459+
// Base tags: d tag (NIP-33), name, pubkey reference, and discovery tag
460460
const baseTags: string[][] = [
461461
['d', 'culture-bridge-settings'], // Single d tag for all app settings
462+
['name', 'Culture Bridge Settings'], // Human-readable name (required by some relays)
462463
['p', userPubkey], // User's pubkey (required by some relays)
463464
['t', 'culture-bridge'], // Discovery tag
464465
];

0 commit comments

Comments
 (0)