summaryrefslogtreecommitdiff
path: root/scripts/update_facebook.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-20 23:13:02 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-01-20 23:13:02 -0500
commit4b9df58c90e25ea79aeec64c6e96f828fe06d7df (patch)
treeac237014d015535d07babba42d40d86608de0ec5 /scripts/update_facebook.php
parentbd056218f9a595184ac7bcac0c1dc6a8981d7af2 (diff)
parent65bfda33b8464caf14ce268c9bea2e7eceb27fe5 (diff)
Merge branch 'master' into groups
Conflicts: .gitignore
Diffstat (limited to 'scripts/update_facebook.php')
-rwxr-xr-xscripts/update_facebook.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/update_facebook.php b/scripts/update_facebook.php
index 8c91df384..0c54cec7c 100755
--- a/scripts/update_facebook.php
+++ b/scripts/update_facebook.php
@@ -67,9 +67,13 @@ while($notice->fetch()) {
// If it's not a reply, or if the user WANTS to send replies...
if (!preg_match('/@[a-zA-Z0-9_]{1,15}\b/u', $content) ||
(($flink->noticesync & FOREIGN_NOTICE_SEND_REPLY) == FOREIGN_NOTICE_SEND_REPLY)) {
- update_status($fbuid, $content);
- update_profile_box($facebook, $fbuid, $user, $notice);
- $cnt++;
+
+ // Avoid a Loop
+ if ($notice->source != 'Facebook') {
+ update_status($fbuid, $content);
+ update_profile_box($facebook, $fbuid, $user, $notice);
+ $cnt++;
+ }
}
}
}