From 125f05563b5c7bd5b74b1afbea3c0b663795bff5 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Mon, 12 Jan 2009 05:25:07 +0000 Subject: trac750 Add prefix string option in Facebook app for notice sync --- scripts/update_facebook.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts') 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) { -- cgit v1.2.3-54-g00ecf