Skip to content

Commit

Permalink
Tumblr GDPR fix 2
Browse files Browse the repository at this point in the history
Previous workaround was not working anymore
FreshRSS#1894
FreshRSS#1924
  • Loading branch information
Alkarex committed Oct 19, 2018
1 parent e4b027f commit b590bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/Tumblr-GDPR/extension.php
Expand Up @@ -7,7 +7,7 @@ public function init() {

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

0 comments on commit b590bb2

Please sign in to comment.