From cd49e9819bea35a4db05e3e76910b739898c2219 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 22 Mar 2020 16:31:20 +0100 Subject: New core-extensions to allow Docker volumes for third-party extensions (#2837) * New core-extensions to allow Docker volumes for third-party extensions #Fix https://github.com/FreshRSS/FreshRSS/issues/2650 Split our extensions directory into two: 1) Core extensions shipped with FreshRSS in ./lib/core-extensions/ 2) Third-party extensions modified by end-users in ./extensions/ which can easily be mounted as a Docker volume * Example of Docker Compose with extensions * Back-compatibility + fix array merge bug --- extensions/Tumblr-GDPR/extension.php | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 extensions/Tumblr-GDPR/extension.php (limited to 'extensions/Tumblr-GDPR/extension.php') diff --git a/extensions/Tumblr-GDPR/extension.php b/extensions/Tumblr-GDPR/extension.php deleted file mode 100644 index 83bdf2189..000000000 --- a/extensions/Tumblr-GDPR/extension.php +++ /dev/null @@ -1,13 +0,0 @@ -registerHook('simplepie_before_init', array('TumblrGdprExtension', 'curlHook')); - } - - public static function curlHook($simplePie, $feed) { - if (preg_match('#^https?://[a-zA-Z_0-9-]+.tumblr.com/#i', $feed->url())) { - $simplePie->set_useragent(FRESHRSS_USERAGENT . ' like Baiduspider'); - } - } -} -- cgit v1.2.3