From d1d4fa150c26eaf4dc4e703b6d175bac8f66c158 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Wed, 29 Oct 2025 07:45:34 -0400 Subject: [PATCH] Use kind 1111 comments with address-first tags --- docs/nostr-event-schemas.md | 2 +- js/nostr/commentEvents.js | 86 ++++++++++++++++++++------- js/nostrEventSchemas.js | 27 +++++---- js/services/discussionCountService.js | 5 +- tests/nostr/comment-events.test.mjs | 76 +++++++++++++---------- 5 files changed, 128 insertions(+), 68 deletions(-) diff --git a/docs/nostr-event-schemas.md b/docs/nostr-event-schemas.md index cc0149b3..d450a41a 100644 --- a/docs/nostr-event-schemas.md +++ b/docs/nostr-event-schemas.md @@ -138,7 +138,7 @@ import { updateWatchHistoryListWithDefaultClient } from "./nostrWatchHistoryFaca | Video post (`NOTE_TYPES.VIDEO_POST`) | `30078` | `['t','video']`, `['d', ]` plus optional schema append tags | JSON payload using Content Schema v3 (`version`, `title`, optional `url`, `magnet`, `thumbnail`, `description`, `mode`, `videoRootId`, `deleted`, `isPrivate`, `isNsfw`, `isForKids`, `enableComments`, `ws`, `xs`) | | NIP-94 mirror (`NOTE_TYPES.VIDEO_MIRROR`) | `1063` | Tags forwarded from `publishVideo` (URL, mime type, thumbnail, alt text, magnet) | Plain text alt description | | Repost (`NOTE_TYPES.REPOST`) | `6` | `['e', , ]` with optional address pointer `['a', , ]`, and `['p', ]` when the origin author is known; inherits schema append tags | Empty content | -| Video comment (`NOTE_TYPES.VIDEO_COMMENT`) | `1` | Mandatory `['e',