Content Audit: Verify upload docs and fix hashtag bug

- Audited `content/docs/guides/upload-content.md` against codebase.
- Verified claims regarding file types, size limits, permissions, and CORS.
- Fixed a bug in `js/services/videoNotePayload.js` where user-entered hashtags were dropped.
- Added regression test `tests/unit/services/videoNotePayload.test.mjs`.
- Generated audit artifacts.
- Created completion log.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-18 00:09:01 +00:00
1 parent 5e8b6b0141
commit 4312a78159
7 files changed
+109 -1

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
# Context: Content Audit & Bug Fix
**Agent:** content-audit-agent
**Date:** 2026-02-18
**Goal:** Audit `content/docs/guides/upload-content.md` against codebase. Fix identified bug in NIP-71 hashtag handling.
## Scope
- `content/docs/guides/upload-content.md`
- `js/services/videoNotePayload.js`
- `js/ui/components/UploadModal.js`
- `components/upload-modal.html`
## Identified Issue
Hashtags entered in the Upload Modal are collected as `{ t: [...] }` by `Nip71FormManager` (due to `data-nip71-list="t"`).
However, `videoNotePayload.js`'s `normalizeNip71Metadata` only looks for `rawMetadata.hashtags`.
This causes user-entered hashtags to be dropped during payload construction.
## Plan
1. Inventory and verify all claims in `upload-content.md`.
2. Create a unit test to reproduce the hashtag bug.
3. Fix the bug in `videoNotePayload.js` to support `t` alias.
4. Verify fix with tests.