From 4b2de6fdf2cd1778ccc249ca152ffb352bcfb73b Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 29 Dec 2012 02:51:15 -0800 Subject: [PATCH] if snautofollow - make all SN contacts writable --- include/onepoll.php | 3 +++ 1 file changed, 3 insertions(+) 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), -- 2.39.5