From 19fa1d9b23fa53c31cd99353ebaa4c3cb51ada68 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 2 Jul 2024 21:02:25 +0100 Subject: [PATCH] Fix JSONFeed version field Unfortunately, the only working validator I found can only validate live URLs --- app/blueprints/feeds/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/blueprints/feeds/__init__.py b/app/blueprints/feeds/__init__.py index 09606aab..7aabeab4 100644 --- a/app/blueprints/feeds/__init__.py +++ b/app/blueprints/feeds/__init__.py @@ -27,7 +27,7 @@ bp = Blueprint("feeds", __name__) 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/", @@ -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": {