Skip to content

Commit

Permalink
Fix JSONFeed version field
Browse files Browse the repository at this point in the history
Unfortunately, the only working validator I found can only validate live URLs
  • Loading branch information
rubenwardy committed Jul 2, 2024
1 parent b4f9c99 commit 19fa1d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/blueprints/feeds/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

def _make_feed(title: str, feed_url: str, items: list):
return {
"version": "https://jsonfeeds.org/version/1",
"version": "https://jsonfeed.org/version/1",
"title": title,
"description": gettext("Welcome to the best place to find Minetest mods, games, and texture packs"),
"home_page_url": "https://content.minetest.net/",
Expand Down Expand Up @@ -79,7 +79,7 @@ def _get_releases_feed(query, feed_url: str):
items = [{
"id": release.package.get_url("packages.view_release", id=release.id, absolute=True),
"language": "en",
"title": f"{release.title} - {release.package.title}",
"title": f"Update: {release.title} - {release.package.title}",
"content_html": render_markdown(release.release_notes) \
if release.release_notes else _render_link(release.package.get_url("packages.view_release", id=release.id, absolute=True)),
"author": {
Expand Down

0 comments on commit 19fa1d9

Please sign in to comment.