From: friendica Date: Sat, 29 Dec 2012 10:51:15 +0000 (-0800) Subject: if snautofollow - make all SN contacts writable X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4b2de6fdf2cd1778ccc249ca152ffb352bcfb73b;p=friendica.git if snautofollow - make all SN contacts writable --- diff --git a/include/onepoll.php b/include/onepoll.php index 01686232cb..f66a48dd46 100644 --- a/include/onepoll.php +++ b/include/onepoll.php @@ -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),