Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atom feeds: Properly link to art API #3129

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Atom feeds: Properly link to art API #3129

merged 1 commit into from
Jan 17, 2025

Conversation

MonkeyDo
Copy link
Member

Currently the use of _external_url_for results in a bad link to the API (lb.org/1/art/....) resulting in an error message "Please use the API at api.listenbrainz.org"

We need to manually construct a link to api.lb.org/1/art/... to fix that

Tested on test.LB with a couple different feed readers, the link is indeed fixed.
Some feed readers don't wan to render the SVG content of the feed items (for example for album grids SVGs), but having a link to the API endpoint serving the same SVG allows users to click somewhere to view the content in a browser.
Some readers have an integrated web view which can render the SVG content in a browser environment, some other feed readers also allow rendering the SVG content directly in the feed item.

I think this covers all bases.

Currently the use of _external_url_for results in a bad link to the API (lb.org/1/art/....) resulting in an error message "Please use the API at api.listenbrainz.org"

We need to manually construct a link to api.lb.org/1/art/... to fix that
@MonkeyDo MonkeyDo merged commit 5a0d597 into master Jan 17, 2025
3 checks passed
@MonkeyDo MonkeyDo deleted the atom-link-fix branch January 17, 2025 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant