]> git.mxchange.org Git - friendica.git/commitdiff
set writable flag on all stat contacts with notify link
authorFriendika <info@friendika.com>
Mon, 11 Apr 2011 10:30:25 +0000 (03:30 -0700)
committerFriendika <info@friendika.com>
Mon, 11 Apr 2011 10:30:25 +0000 (03:30 -0700)
include/poller.php

index cb246158485dd3ce2dd633db0dd8f147a8921ba3..b878ef2954bca585c7439f87ef83ea79704e56fd 100644 (file)
@@ -269,6 +269,11 @@ function poller_run($argv, $argc){
 
                                // $contact['network'] !== 'dfrn'
 
+                               if(($contact['notify']) && (! $contact['writable'])) {
+                                       q("UPDATE `contact` SET `writable` = 1 WHERE `id` = %d LIMIT 1",
+                                               intval($contact['id'])
+                                       );
+                               }
                                $xml = fetch_url($contact['poll']);
                        }