diff options
| author | supahgreg <supahgreg@users.noreply.github.com> | 2025-10-03 21:00:43 +0000 |
|---|---|---|
| committer | supahgreg <supahgreg@users.noreply.github.com> | 2025-10-03 21:00:43 +0000 |
| commit | 5e99eb41ecdf55e5482b4823b009f3cfdac6ec22 (patch) | |
| tree | 5167514d71b52eeb3315f9ca72b095e189eda8db /classes | |
| parent | c67b943aa894b90103c4752ac430958886b996b2 (diff) | |
Remove references to, and integrations with, 'tt-rss.org'.
Diffstat (limited to 'classes')
| -rw-r--r-- | classes/Config.php | 6 | ||||
| -rw-r--r-- | classes/Pref_Prefs.php | 12 | ||||
| -rw-r--r-- | classes/RPC.php | 4 | ||||
| -rw-r--r-- | classes/RSSUtils.php | 2 |
4 files changed, 13 insertions, 11 deletions
diff --git a/classes/Config.php b/classes/Config.php index 49715a576..61aab85ca 100644 --- a/classes/Config.php +++ b/classes/Config.php @@ -272,7 +272,7 @@ class Config { Config::CHECK_FOR_PLUGIN_UPDATES => [ "true", Config::T_BOOL ], Config::ENABLE_PLUGIN_INSTALLER => [ "true", Config::T_BOOL ], Config::AUTH_MIN_INTERVAL => [ 5, Config::T_INT ], - Config::HTTP_USER_AGENT => [ 'Tiny Tiny RSS/%s (https://tt-rss.org/)', + Config::HTTP_USER_AGENT => [ 'Tiny Tiny RSS/%s (https://github.com/supahgreg/tt-rss)', Config::T_STRING ], Config::HTTP_429_THROTTLE_INTERVAL => [ 3600, Config::T_INT ], Config::DISABLE_LOGIN_FORM => [ "", Config::T_BOOL ], @@ -632,8 +632,8 @@ class Config { <?php foreach ($errors as $error) { echo self::format_error($error); } ?> - <p>You might want to check the tt-rss <a target="_blank" href="https://tt-rss.org/wiki/InstallationNotes/">wiki</a> or - <a target="_blank" href="https://community.tt-rss.org/">forums</a> for more information. Please search the forums before creating a new topic + <p>You might want to check the tt-rss <a target="_blank" href="https://github.com/supahgreg/tt-rss-web-static/blob/main/docs/wiki/InstallationNotes.md">wiki</a> or + <a target="_blank" href="https://github.com/supahgreg/tt-rss/discussions">discussions</a> for more information. Please search before creating a new topic for your question.</p> </div> </body> diff --git a/classes/Pref_Prefs.php b/classes/Pref_Prefs.php index 6942e711c..97a6940b5 100644 --- a/classes/Pref_Prefs.php +++ b/classes/Pref_Prefs.php @@ -647,7 +647,7 @@ class Pref_Prefs extends Handler_Protected { <?= \Controls\button_tag(\Controls\icon("palette") . " " . __("Customize"), "", ["onclick" => "Helpers.Prefs.customizeCSS()"]) ?> <?= \Controls\button_tag(\Controls\icon("open_in_new") . " " . __("More themes..."), "", - ["class" => "alt-info", "onclick" => "window.open(\"https://tt-rss.org/Themes/\")"]) ?> + ["class" => "alt-info", "onclick" => "window.open(\"https://github.com/supahgreg/tt-rss-web-static/blob/main/docs/Themes.md\")"]) ?> <?php @@ -713,7 +713,7 @@ class Pref_Prefs extends Handler_Protected { print \Controls\button_tag(\Controls\icon("help") . " " . __("More info..."), "", [ "class" => "alt-info", - "onclick" => "window.open('https://tt-rss.org/wiki/SSL%20Certificate%20Authentication')"]); + "onclick" => "window.open('https://github.com/supahgreg/tt-rss-web-static/blob/main/docs/wiki/SSL%20Certificate%20Authentication.md')"]); } else if ($pref_name == Prefs::DIGEST_PREFERRED_TIME) { print "<input dojoType=\"dijit.form.ValidationTextBox\" @@ -878,7 +878,7 @@ class Pref_Prefs extends Handler_Protected { print_error( T_sprintf("The following plugins use per-feed content hooks. This may cause excessive data usage and origin server load resulting in a ban of your instance: <b>%s</b>" , implode(", ", array_map(fn($plugin) => get_class($plugin), $feed_handlers)) - ) . " (<a href='https://tt-rss.org/wiki/FeedHandlerPlugins' target='_blank'>".__("More info...")."</a>)" + ) . " (<a href='https://github.com/supahgreg/tt-rss-web-static/blob/main/docs/wiki/FeedHandlerPlugins.md' target='_blank'>".__("More info...")."</a>)" ); } ?> --> @@ -890,7 +890,7 @@ class Pref_Prefs extends Handler_Protected { </div> <div dojoType="dijit.layout.ContentPane" region="bottom"> - <button dojoType='dijit.form.Button' class="alt-info pull-right" onclick='window.open("https://tt-rss.org/Plugins/")'> + <button dojoType='dijit.form.Button' class="alt-info pull-right" onclick='window.open("https://github.com/supahgreg/tt-rss-web-static/blob/main/docs/Plugins.md")'> <i class='material-icons'>help</i> <?= __("More info") ?> </button> @@ -1274,8 +1274,10 @@ 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 = json_decode(UrlHelper::fetch(['url' => 'https://tt-rss.org/plugins.json']), true); + $content = false; if ($content) { return $content; diff --git a/classes/RPC.php b/classes/RPC.php index 8ecec41f5..d5588cc57 100644 --- a/classes/RPC.php +++ b/classes/RPC.php @@ -324,8 +324,10 @@ class RPC extends Handler_Protected { $git_timestamp = $version["timestamp"] ?? false; $git_commit = $version["commit"] ?? false; + // TODO: Get this working again. https://tt-rss.org/version.json won't exist after 2025-11-01 (probably). if (Config::get(Config::CHECK_FOR_UPDATES) && $_SESSION["access_level"] >= UserHelper::ACCESS_LEVEL_ADMIN && $git_timestamp) { - $content = @UrlHelper::fetch(["url" => "https://tt-rss.org/version.json"]); + // $content = @UrlHelper::fetch(["url" => "https://tt-rss.org/version.json"]); + $content = false; if ($content) { $content = json_decode($content, true); diff --git a/classes/RSSUtils.php b/classes/RSSUtils.php index 540069b6a..c4a6af548 100644 --- a/classes/RSSUtils.php +++ b/classes/RSSUtils.php @@ -1989,8 +1989,6 @@ class RSSUtils { } /** - * @see https://community.tt-rss.org/t/problem-with-img-srcset/3519 - * * @return array<int, array<string, string>> An array of srcset subitem arrays with keys "url" and "size" */ static function decode_srcset(string $srcset): array { |