From: Friendika Date: Fri, 19 Aug 2011 11:37:11 +0000 (-0700) Subject: facebook - don't fetch wall feeds if no linking is set X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9b2d408d7391fe03ce7fef48115d4f24582c249e;p=friendica.git facebook - don't fetch wall feeds if no linking is set --- diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index 47e7691e46..ed59daff61 100644 --- a/addon/facebook/facebook.php +++ b/addon/facebook/facebook.php @@ -395,6 +395,8 @@ function facebook_cron($a,$b) { $r = q("SELECT * FROM `pconfig` WHERE `cat` = 'facebook' AND `k` = 'post' AND `v` = '1' ORDER BY RAND() "); if(count($r)) { foreach($r as $rr) { + if(get_pconfig($rr['uid'],'facebook','no_linking')) + continue; // check for new friends once a day $last_friend_check = get_pconfig($rr['uid'],'facebook','friend_check'); if($last_friend_check)