mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
- Updates `js/userBlocks.js` to treat Kind 10000 (standard Mute List) as the primary write target. - Public mutes are stored in `p` tags, and private blocks are stored in encrypted content within the same event. - Legacy `d=user-blocks` lists are still read for backward compatibility (preferring the newest event), but no longer written. - Updates `js/nostrEventSchemas.js` to mark `USER_BLOCK_LIST` as legacy and standardise `MUTE_LIST`. - Updates UI controllers (`MoreMenuController`, `ProfileModalController`) to use "Mute/Block List" terminology and delegate all mute/block actions to `userBlocks`. - Updates `ModerationService` to delegate viewer mute operations to `userBlocks` and disable direct Kind 10000 publishing to prevent overwrites. - Documentation updated in `docs/nostr-event-schemas.md`. - Fixes regressions in `more-menu-controller.test.mjs`, `moderation-service.test.mjs`, `trusted-mute-lists.test.mjs`, and `user-blocks.test.mjs`. Co-authored-by: PR0M3TH3AN <[email protected]>