docs: document the weekly newsletter draft and 1.7.9

This commit is contained in:
SkateSpots 2026-10-28 09:51:53 +07:00
parent 13f138222d
commit b8629879e0

22
NIP.md
View file

@ -3322,6 +3322,28 @@ This prevents anyone from spamming the community newsletter feed.
}
```
### Weekly draft (kind 30078)
`scripts/newsletter-weekly.ts` publishes the generated issue as a **public
NIP-78 draft** before an admin publishes it:
```json
{
"kind": 30078,
"content": "<JSON NewsletterDraft: number,title,slug,summary,image,body,nostrText,coverTitle,createdAt>",
"tags": [
["d", "skatespots:newsletter:draft"],
["t", "skatespotsnewsdraft"],
["alt", "SkateSpots weekly newsletter draft #007"]
]
}
```
The draft is authored by an admin and read only by the admin composer. It is
plaintext/public (no subscriber list, keys or private messages) and is **not**
an issue: subscribers only see a later kind-30023 publish. Set
`NEWSLETTER_AUTOPUBLISH=1` to have the same run publish the issue and teaser.
### Subscription marker (kind 30078)
A reader opts in to the in-app newsletter mailbox by publishing a per-user