diff options
| author | 2023-06-12 08:22:02 +0200 | |
|---|---|---|
| committer | 2023-06-12 08:22:02 +0200 | |
| commit | 2f5ef39cf2e0bad6d3a30b02e42d10700d0546a3 (patch) | |
| tree | 36fbd4698df843c5a1ce546bb3d9f1c2ffc3a6f5 /lib/core-extensions/Tumblr-GDPR/extension.php | |
| parent | 7a5dd5cedd17791a88670e079d89349dbc926085 (diff) | |
Remove core extensions Google Groups and Tumblr (#5457)
* Remove core extensions Google Groups and Tumblr
* Google Groups seems to have remove support for RSS/ATOM https://github.com/FreshRSS/FreshRSS/pull/2838 (see e.g. https://www.theregister.com/2021/08/16/google_groups_rss/ )
* Tumblr seems to have fixed their RSS/ATOM post-GDPR https://github.com/FreshRSS/FreshRSS/pull/1924
So for both of thems, the extensions have become irrelevant.
* Cleaning
Diffstat (limited to 'lib/core-extensions/Tumblr-GDPR/extension.php')
| -rw-r--r-- | lib/core-extensions/Tumblr-GDPR/extension.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/core-extensions/Tumblr-GDPR/extension.php b/lib/core-extensions/Tumblr-GDPR/extension.php deleted file mode 100644 index 825bb97df..000000000 --- a/lib/core-extensions/Tumblr-GDPR/extension.php +++ /dev/null @@ -1,14 +0,0 @@ -<?php - -class TumblrGdprExtension extends Minz_Extension { - /** @return void */ - public function init() { - $this->registerHook('simplepie_before_init', array('TumblrGdprExtension', 'curlHook')); - } - - public static function curlHook(SimplePie $simplePie, FreshRSS_Feed $feed): void { - if (preg_match('#^https?://[a-zA-Z_0-9-]+.tumblr.com/#i', $feed->url())) { - $simplePie->set_useragent(FRESHRSS_USERAGENT . ' like Baiduspider'); - } - } -} |
