]> git.mxchange.org Git - friendica.git/blobdiff - include/onepoll.php
Use more cookies to allow processing of the NYT feed
[friendica.git] / include / onepoll.php
index 516f1dfd4d7308096480f14ce108afb5ba570ec5..5ebafb353e95323b33a40d34a2a25e10a01078e4 100644 (file)
@@ -335,7 +335,9 @@ function onepoll_run(&$argv, &$argc){
                if($contact['rel'] == CONTACT_IS_FOLLOWER || $contact['blocked'] || $contact['readonly'])
                        return;
 
-               $xml = fetch_url($contact['poll']);
+               $cookiejar = tempnam('/tmp', 'cookiejar-onepoll-');
+               $xml = fetch_url($contact['poll'], false, $redirects, 0, Null, $cookiejar);
+               unlink($cookiejar);
        }
        elseif($contact['network'] === NETWORK_MAIL || $contact['network'] === NETWORK_MAIL2) {