]> git.mxchange.org Git - friendica.git/commitdiff
facebook - don't fetch wall feeds if no linking is set
authorFriendika <info@friendika.com>
Fri, 19 Aug 2011 11:37:11 +0000 (04:37 -0700)
committerFriendika <info@friendika.com>
Fri, 19 Aug 2011 11:37:11 +0000 (04:37 -0700)
addon/facebook/facebook.php

index 47e7691e46a952ebfe26f37611f6dd618326c3a8..ed59daff61d8cfa23d2be99fa3e31b42b75822b4 100644 (file)
@@ -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)