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
This commit is contained in:
Alexandre Alapetite 2023-06-12 08:22:02 +02:00 committed by GitHub
parent 7a5dd5cedd
commit 2f5ef39cf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 0 additions and 52 deletions

View File

@ -189,8 +189,6 @@ return array(
# List of enabled FreshRSS extensions.
'extensions_enabled' => [
'Google-Groups' => true,
'Tumblr-GDPR' => true,
],
# Disable self-update,

View File

@ -48,6 +48,4 @@ metadata.json:
See folder: `.lib/core-extensions`
Two system extensions are already pre-installed: `Google-Groups` and `Tumblr-GDPR`.
Important: do not install your chosen extensions here!

View File

@ -1,3 +0,0 @@
# Google Groups
Needed for discovering RSS feeds from [Google Groups](https://groups.google.com).

View File

@ -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) ?? '';
}
}

View File

@ -1,8 +0,0 @@
{
"name": "Google-Groups",
"author": "Alkarex",
"description": "To discover RSS feeds for Google Groups",
"version": 1.0,
"entrypoint": "GoogleGroups",
"type": "system"
}

View File

@ -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.

View File

@ -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');
}
}
}

View File

@ -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"
}