mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-24 01:11:00 +02:00
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
This commit is contained in:
parent
bcb14b4953
commit
050141676f
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user