summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-19 13:35:17 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-19 13:35:17 +0000
commit12c475c101c070cbcc4c63f7b1049f6d3282b9ee (patch)
tree17852a7eb495117d372b0d059d3ed8405b590b92 /scripts
parente703f5e347574c2f68c97a3884bec209f924602f (diff)
parent739baf0396b2e6796f07616cdb9d52d09cf6ed2f (diff)
Merge branch 'master' of /var/www/trunk
Conflicts: actions/facebookhome.php actions/facebooksettings.php
Diffstat (limited to 'scripts')
-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++;
+ }
}
}
}