feat: WebSub with a built-in hub (v2.10.0)

ADR-071. Topics (/, /feed.atom, /feed.rss, /feed.json, /likes, /tag/<name>)
advertise the hub and themselves in Link headers and embedded links. Note
changes bump a content version (fresh feeds in every process) and queue
deliveries. /websub accepts subscriptions for these topics only; the worker
verifies intent, delivers signed content with retries, and prunes expired
leases, all through the SSRF-safe pinned fetcher. WEBSUB_HUB_URL switches
to an external hub (publish pings). Also: the memory monitor no longer
stops after the first request; RSS self link is /feed.rss.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-03 10:33:41 -07:00
1 parent 720a1e6d6f
commit b520b8b4d3
19 files changed
+1203 -29

No files matched your search

+3
View File
@@ -761,6 +761,9 @@ def handle_update(data: dict, token_info: dict):
from starpunk.media import attach_media_to_note
attach_media_to_note(note.id, media_ids, captions)
note_changed(note.id)
if not changes: # update_note already told WebSub otherwise
from starpunk import websub
websub.note_changed(note, was_public=note.published)
except InvalidNoteDataError as e:
raise MicropubValidationError(str(e))
except MicropubError: