Skip to content

🐛 Fetch timeline from the ticker's own /api instead of a dedicated API host - #71

Merged
0x46616c6b merged 1 commit into
mainfrom
update-timeline-api-endpoint
Aug 25, 2026
Merged

🐛 Fetch timeline from the ticker's own /api instead of a dedicated API host#71
0x46616c6b merged 1 commit into
mainfrom
update-timeline-api-endpoint

Conversation

@0x46616c6b

Copy link
Copy Markdown
Member

Goal

The ticker API no longer runs on a dedicated hostname (ticker-api.systemli.org). As of systemli/ticker#472, every ticker serves its own API relative to itself at /api, which the reverse proxy rewrites to /v1. See https://systemli.github.io/ticker/installation/.

What changes

  • The widget now fetches ${origin}/api/timeline instead of ${apiUrl}/v1/timeline?origin=${origin}. The reverse proxy sets the Origin header itself, so the origin query parameter is no longer needed.
  • The apiUrl prop is removed; there is no longer a separate API host to point it at.
  • Attachment URLs returned by the API are host-relative (e.g. /api/media/<file>). They are now resolved against origin before being used as img src, otherwise they'd resolve against whatever page embeds the widget.
  • Dropped geoInformation from the Message type, as the API response no longer contains it.

Breaking changes

  • The apiUrl prop / api-url attribute is gone. Existing embeds that only set origin are unaffected.

Related

… API host

The ticker API no longer runs on its own hostname; it is served relative
to each ticker at /api, which the reverse proxy rewrites to /v1. Fetch
the timeline from the ticker's own origin instead of the removed
ticker-api.systemli.org host, and drop the now-unused apiUrl prop.

Attachment URLs returned by the API are host-relative too, so resolve
them against origin before rendering.
@0x46616c6b 0x46616c6b added the bug Something isn't working label Aug 25, 2026
@0x46616c6b
0x46616c6b marked this pull request as ready for review August 25, 2026 15:25
@0x46616c6b
0x46616c6b merged commit 2492d1f into main Aug 25, 2026
2 checks passed
@0x46616c6b
0x46616c6b deleted the update-timeline-api-endpoint branch August 25, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant