]> git.mxchange.org Git - friendica.git/commitdiff
if snautofollow - make all SN contacts writable
authorfriendica <info@friendica.com>
Sat, 29 Dec 2012 10:51:15 +0000 (02:51 -0800)
committerfriendica <info@friendica.com>
Sat, 29 Dec 2012 10:51:15 +0000 (02:51 -0800)
include/onepoll.php

index 01686232cb153e1379f68466a9ac0bfde7654269..f66a48dd46a6d4c831ecafe6f5160b466f9c51e8 100644 (file)
@@ -252,6 +252,9 @@ function onepoll_run(&$argv, &$argc){
 
                $stat_writeable = ((($contact['notify']) && ($contact['rel'] == CONTACT_IS_FOLLOWER || $contact['rel'] == CONTACT_IS_FRIEND)) ? 1 : 0);
 
+               if($contact['network'] === NETWORK_OSTATUS && get_pconfig($importer_uid,'system','ostatus_autofriend'))
+                       $stat_writeable = 1;
+
                if($stat_writeable != $contact['writable']) {
                        q("UPDATE `contact` SET `writable` = %d WHERE `id` = %d LIMIT 1",
                                intval($stat_writeable),