summaryrefslogtreecommitdiff
path: root/plugins/Facebook/facebookutil.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Facebook/facebookutil.php')
-rw-r--r--plugins/Facebook/facebookutil.php39
1 files changed, 2 insertions, 37 deletions
diff --git a/plugins/Facebook/facebookutil.php b/plugins/Facebook/facebookutil.php
index c7b0f02c3..1290fed55 100644
--- a/plugins/Facebook/facebookutil.php
+++ b/plugins/Facebook/facebookutil.php
@@ -256,11 +256,9 @@ function statusUpdate($notice, $user, $fbuid)
. "Facebook UID: $fbuid"
);
- $text = formatNotice($notice, $user, $fbuid);
-
$facebook = getFacebook();
$result = $facebook->api_client->users_setStatus(
- $text,
+ $notice->content,
$fbuid,
false,
true
@@ -284,12 +282,11 @@ function publishStream($notice, $user, $fbuid)
. "Facebook UID: $fbuid"
);
- $text = formatNotice($notice, $user, $fbuid);
$fbattachment = format_attachments($notice->attachments());
$facebook = getFacebook();
$facebook->api_client->stream_publish(
- $text,
+ $notice->content,
$fbattachment,
null,
null,
@@ -304,38 +301,6 @@ function publishStream($notice, $user, $fbuid)
);
}
-function formatNotice($notice, $user, $fbuid)
-{
- // Get the status 'verb' the user has set, if any
-
- common_debug(
- "FacebookPlugin - Looking to see if $user->nickname ($user->id), "
- . "Facebook UID: $fbuid has set a verb for Facebook posting..."
- );
-
- $facebook = getFacebook();
- $verb = trim(
- $facebook->api_client->data_getUserPreference(
- FACEBOOK_NOTICE_PREFIX,
- $fbuid
- )
- );
-
- common_debug("Facebook returned " . var_export($verb, true));
-
- $text = null;
-
- if (!empty($verb)) {
- common_debug("FacebookPlugin - found a verb: $verb");
- $text = trim($verb) . ' ' . $notice->content;
- } else {
- common_debug("FacebookPlugin - no verb found.");
- $text = $notice->content;
- }
-
- return $text;
-}
-
function updateProfileBox($facebook, $flink, $notice, $user) {
$facebook = getFacebook();