From 050141676f4ad6fa3e0ee7edc9a6fa9859547eb3 Mon Sep 17 00:00:00 2001 From: supahgreg Date: Thu, 16 Oct 2025 03:43:24 +0000 Subject: [PATCH] Reactivate the plugin installer using new JSON source. Closes tt-rss/tt-rss#3. * The JSON is built using https://github.com/tt-rss/tt-rss/blob/main/.github/workflows/update-plugins-json.yml * The aforementioned workflow pushes the JSON to https://github.com/tt-rss/tt-rss/blob/gh-pages/plugins.json * GitHub Pages then makes the JSON available at https://tt-rss.github.io/tt-rss/plugins.json --- classes/Pref_Prefs.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/classes/Pref_Prefs.php b/classes/Pref_Prefs.php index 54cb4fa4f..ab1cc0048 100644 --- a/classes/Pref_Prefs.php +++ b/classes/Pref_Prefs.php @@ -1313,12 +1313,9 @@ class Pref_Prefs extends Handler_Protected { * @return array, 'html_url': string, 'clone_url': string, 'last_update': string}> */ private function _get_available_plugins(): array { - // TODO: Get this working again. https://tt-rss.org/plugins.json won't exist after 2025-11-01 (probably). if ($_SESSION["access_level"] >= UserHelper::ACCESS_LEVEL_ADMIN && Config::get(Config::ENABLE_PLUGIN_INSTALLER)) { - // $content = json_decode(UrlHelper::fetch(['url' => 'https://tt-rss.org/plugins.json']), true); - $content = false; + $content = json_decode(UrlHelper::fetch(['url' => 'https://tt-rss.github.io/tt-rss/plugins.json']), true); - /** @phpstan-ignore if.alwaysFalse (intentionally disabling for now) */ if ($content) { return $content; }