summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorsupahgreg <supahgreg@users.noreply.github.com>2025-10-16 03:43:24 +0000
committersupahgreg <supahgreg@users.noreply.github.com>2025-10-16 03:45:28 +0000
commit050141676f4ad6fa3e0ee7edc9a6fa9859547eb3 (patch)
tree697c1a0d7224c2644e0cd21a6a25653df0f0c72f /classes
parentbcb14b4953d99594982859f648d5ce05678a3f05 (diff)
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
Diffstat (limited to 'classes')
-rw-r--r--classes/Pref_Prefs.php5
1 files changed, 1 insertions, 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<int, array{'name': string, 'description': string, 'topics': array<int, string>, '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;
}