diff options
author | Friendika <info@friendika.com> | 2011-08-19 04:37:11 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-19 04:37:11 -0700 |
commit | 9b2d408d7391fe03ce7fef48115d4f24582c249e (patch) | |
tree | 9313f1d2fc32f68afacee1003bb23eb75985fe21 /addon/facebook/facebook.php | |
parent | 68c237f79f39dd5296770d872aa4a3f439448b28 (diff) | |
download | volse-hubzilla-9b2d408d7391fe03ce7fef48115d4f24582c249e.tar.gz volse-hubzilla-9b2d408d7391fe03ce7fef48115d4f24582c249e.tar.bz2 volse-hubzilla-9b2d408d7391fe03ce7fef48115d4f24582c249e.zip |
facebook - don't fetch wall feeds if no linking is set
Diffstat (limited to 'addon/facebook/facebook.php')
-rw-r--r-- | addon/facebook/facebook.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index 47e7691e4..ed59daff6 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) |