summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-01-12 05:25:07 +0000
committerZach Copley <zach@controlyourself.ca>2009-01-12 05:25:07 +0000
commit125f05563b5c7bd5b74b1afbea3c0b663795bff5 (patch)
tree0e4fae530a15ecf7a3255b12ffa1d2bceba9db64 /scripts
parent10e32eca5ca7683dd7ea3746d563727f1923163f (diff)
trac750 Add prefix string option in Facebook app for notice sync
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update_facebook.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/update_facebook.php b/scripts/update_facebook.php
index 2a1251f37..8c91df384 100755
--- a/scripts/update_facebook.php
+++ b/scripts/update_facebook.php
@@ -57,7 +57,10 @@ while($notice->fetch()) {
$flink = Foreign_link::getByUserID($notice->profile_id, FACEBOOK_SERVICE);
$user = $flink->getUser();
$fbuid = $flink->foreign_id;
- $content = $notice->content;
+
+ $prefix = $facebook->api_client->data_getUserPreference(1, $fbuid);
+
+ $content = "$prefix $notice->content";
if (($flink->noticesync & FOREIGN_NOTICE_SEND) == FOREIGN_NOTICE_SEND) {