diff options
| author | 2020-03-22 16:31:20 +0100 | |
|---|---|---|
| committer | 2020-03-22 16:31:20 +0100 | |
| commit | cd49e9819bea35a4db05e3e76910b739898c2219 (patch) | |
| tree | 437b36b429357f90d2a168d4ba2ae016708cc54d /extensions/Tumblr-GDPR/extension.php | |
| parent | c03e097dae7e7a2026bde7ef96e5f05b139d758d (diff) | |
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
Diffstat (limited to 'extensions/Tumblr-GDPR/extension.php')
| -rw-r--r-- | extensions/Tumblr-GDPR/extension.php | 13 |
1 files changed, 0 insertions, 13 deletions
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 @@ -<?php - -class TumblrGdprExtension extends Minz_Extension { - public function init() { - $this->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'); - } - } -} |
