initial work #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/activitypub-comments"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Totally created by Claude with some small nudges by me. Untested so far.
Add a reusable Hugo Module that displays Mastodon replies as a client-side comment thread, with no backend. A post is linked to a toot via front matter; readers click "Load comments" to fetch the reply thread from /api/v1/statuses/{id}/context and render it. - layouts/partials/activitypub-comments.html: the partial sites call; passes config via data-* attributes and builds JS/CSS/DOMPurify through Hugo Pipes (minify + sha512 fingerprint + SRI) - assets/js/activitypub-comments.js: fetch, thread by in_reply_to_id, OP badge, custom emoji, DOMPurify sanitization, error/empty states - assets/js/vendor/purify.min.js: bundled DOMPurify 3.2.4 (no CDN) - assets/css/activitypub-comments.css: ap-namespaced, themeable - i18n/en.toml: translatable UI strings - exampleSite/: runnable demo (verified to build with Hugo 0.161.1) - README, LICENSE (MIT) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>