mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2025-12-23 21:47:44 -05:00
Tumblr GDPR fix 2 (#2053)
Previous workaround was not working anymore https://github.com/FreshRSS/FreshRSS/issues/1894 https://github.com/FreshRSS/FreshRSS/pull/1924
This commit is contained in:
committed by
GitHub
parent
e4b027ff38
commit
4e329e8bb8
@@ -7,7 +7,7 @@ class TumblrGdprExtension extends Minz_Extension {
|
||||
|
||||
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 Googlebot');
|
||||
$simplePie->set_useragent(FRESHRSS_USERAGENT . ' like Baiduspider');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user