- mp-syndicate-to/mp-slug read from JSON properties; absent means no
crossposting
- Sanitize rendered HTML (nh3 allowlist)
- q=source/q=category need a posting scope; draft scope creates drafts;
private/unlisted visibility saved as drafts
- Photos that can't be fetched or found fail the request; remote photos
via the SSRF-checked, pinned fetcher
- JSON scalars wrapped, update delete values must be arrays
- bookmark-of stored; HTML content returned as {html} (migration 015)
- published stored as UTC, bad dates 400; malformed JSON 400
- Auth: case-insensitive Bearer, header+body 400, WWW-Authenticate
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 lines
393 B
SQL
8 lines
393 B
SQL
-- Migration 015: Bookmarks and HTML-authored content (v2.9.0)
|
|
-- bookmark_of: URL bookmarked (Micropub bookmark-of); the note is a bookmark.
|
|
-- content_format: 'html' when a Micropub client sent the content as HTML,
|
|
-- so q=source returns it as {"html": ...} (Micropub 3.7.2). NULL = Markdown.
|
|
|
|
ALTER TABLE notes ADD COLUMN bookmark_of TEXT;
|
|
ALTER TABLE notes ADD COLUMN content_format TEXT;
|