facebook - don't fetch wall feeds if no linking is set
This commit is contained in:
parent
68c237f79f
commit
9b2d408d73
|
@ -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() ");
|
$r = q("SELECT * FROM `pconfig` WHERE `cat` = 'facebook' AND `k` = 'post' AND `v` = '1' ORDER BY RAND() ");
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
foreach($r as $rr) {
|
foreach($r as $rr) {
|
||||||
|
if(get_pconfig($rr['uid'],'facebook','no_linking'))
|
||||||
|
continue;
|
||||||
// check for new friends once a day
|
// check for new friends once a day
|
||||||
$last_friend_check = get_pconfig($rr['uid'],'facebook','friend_check');
|
$last_friend_check = get_pconfig($rr['uid'],'facebook','friend_check');
|
||||||
if($last_friend_check)
|
if($last_friend_check)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user