aboutsummaryrefslogtreecommitdiff
path: root/lib/core-extensions
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-06-12 08:22:02 +0200
committerGravatar GitHub <noreply@github.com> 2023-06-12 08:22:02 +0200
commit2f5ef39cf2e0bad6d3a30b02e42d10700d0546a3 (patch)
tree36fbd4698df843c5a1ce546bb3d9f1c2ffc3a6f5 /lib/core-extensions
parent7a5dd5cedd17791a88670e079d89349dbc926085 (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')
-rw-r--r--lib/core-extensions/Google-Groups/README.md3
-rw-r--r--lib/core-extensions/Google-Groups/extension.php11
-rw-r--r--lib/core-extensions/Google-Groups/metadata.json8
-rw-r--r--lib/core-extensions/Tumblr-GDPR/README.md4
-rw-r--r--lib/core-extensions/Tumblr-GDPR/extension.php14
-rw-r--r--lib/core-extensions/Tumblr-GDPR/metadata.json8
6 files changed, 0 insertions, 48 deletions
diff --git a/lib/core-extensions/Google-Groups/README.md b/lib/core-extensions/Google-Groups/README.md
deleted file mode 100644
index 21b901ded..000000000
--- a/lib/core-extensions/Google-Groups/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# Google Groups
-
-Needed for discovering RSS feeds from [Google Groups](https://groups.google.com).
diff --git a/lib/core-extensions/Google-Groups/extension.php b/lib/core-extensions/Google-Groups/extension.php
deleted file mode 100644
index eb30de5f9..000000000
--- a/lib/core-extensions/Google-Groups/extension.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-class GoogleGroupsExtension extends Minz_Extension {
- /** @return void */
- public function init() {
- $this->registerHook('check_url_before_add', array('GoogleGroupsExtension', 'findFeed'));
- }
-
- public static function findFeed(string $url): string {
- return preg_replace('%^(https?://groups.google.com/forum)/#!forum/(.+)$%i', '$1/feed/$2/msgs/rss.xml', $url) ?? '';
- }
-}
diff --git a/lib/core-extensions/Google-Groups/metadata.json b/lib/core-extensions/Google-Groups/metadata.json
deleted file mode 100644
index afaa18392..000000000
--- a/lib/core-extensions/Google-Groups/metadata.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "Google-Groups",
- "author": "Alkarex",
- "description": "To discover RSS feeds for Google Groups",
- "version": 1.0,
- "entrypoint": "GoogleGroups",
- "type": "system"
-}
diff --git a/lib/core-extensions/Tumblr-GDPR/README.md b/lib/core-extensions/Tumblr-GDPR/README.md
deleted file mode 100644
index fc5e4dd50..000000000
--- a/lib/core-extensions/Tumblr-GDPR/README.md
+++ /dev/null
@@ -1,4 +0,0 @@
-# Tumblr-GDPR
-
-Needed for accessing [Tumblr](https://www.tumblr.com/) RSS feeds from the European Union:
-bypass the [GPDR](https://en.wikipedia.org/wiki/General_Data_Protection_Regulation) check, implying consent.
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');
- }
- }
-}
diff --git a/lib/core-extensions/Tumblr-GDPR/metadata.json b/lib/core-extensions/Tumblr-GDPR/metadata.json
deleted file mode 100644
index b5c33787b..000000000
--- a/lib/core-extensions/Tumblr-GDPR/metadata.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "Tumblr-GDPR",
- "author": "Alkarex",
- "description": "Bypass Tumblr’ GPDR check (implying consent) for the European Union",
- "version": 1.0,
- "entrypoint": "TumblrGdpr",
- "type": "system"
-}