feat: route context fetch through the comments proxy #5

Merged
james merged 1 commit from feat/proxy-integration into main 2026-05-26 03:57:06 +00:00
Owner

Wire the widget to proxy/. A new proxy setting
(params.activitypub_comments.proxy, or per-post comments.proxy) makes
the JS fetch the context from {proxy}/api/v1/statuses/{id}/context
instead of directly from the instance — needed for auth-required
instances like GoToSocial. Display links (toot URL, avatars) still use
host, so they keep pointing at the real instance.

  • partial: resolve proxy, emit data-proxy when set
  • js: fetch base = proxy || https://host; strips trailing slashes
  • hugo.toml + README + proxy/README + CLAUDE.md: document the wiring
  • exampleSite: add via-proxy CI fixture
  • ci.yml: assert data-proxy is emitted when configured (and absent
    otherwise), and that display host is unchanged

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

Wire the widget to proxy/. A new `proxy` setting (params.activitypub_comments.proxy, or per-post comments.proxy) makes the JS fetch the context from `{proxy}/api/v1/statuses/{id}/context` instead of directly from the instance — needed for auth-required instances like GoToSocial. Display links (toot URL, avatars) still use `host`, so they keep pointing at the real instance. - partial: resolve `proxy`, emit data-proxy when set - js: fetch base = proxy || https://host; strips trailing slashes - hugo.toml + README + proxy/README + CLAUDE.md: document the wiring - exampleSite: add via-proxy CI fixture - ci.yml: assert data-proxy is emitted when configured (and absent otherwise), and that display host is unchanged Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
feat: route context fetch through the comments proxy
All checks were successful
CI / build (pull_request) Successful in 31s
Proxy / test (pull_request) Successful in 1m5s
3f96f0c193
Wire the widget to proxy/. A new `proxy` setting
(params.activitypub_comments.proxy, or per-post comments.proxy) makes
the JS fetch the context from `{proxy}/api/v1/statuses/{id}/context`
instead of directly from the instance — needed for auth-required
instances like GoToSocial. Display links (toot URL, avatars) still use
`host`, so they keep pointing at the real instance.

- partial: resolve `proxy`, emit data-proxy when set
- js: fetch base = proxy || https://host; strips trailing slashes
- hugo.toml + README + proxy/README + CLAUDE.md: document the wiring
- exampleSite: add via-proxy CI fixture
- ci.yml: assert data-proxy is emitted when configured (and absent
  otherwise), and that display host is unchanged

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
james merged commit 7f47a5910f into main 2026-05-26 03:57:06 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
james/hugo-ap-comments!5
No description provided.