summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/twitapistatuses.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php
index 68d6bb622..539a0b1b3 100644
--- a/actions/twitapistatuses.php
+++ b/actions/twitapistatuses.php
@@ -193,10 +193,10 @@ class TwitapistatusesAction extends TwitterapiAction {
# FriendFeed's SUP protocol
# Also added RSS and Atom feeds
-
+
$suplink = common_local_url('sup', NULL, $user->id);
header('X-SUP-ID: '.$suplink);
-
+
# XXX: since
$notice = $user->getNotices((($page-1)*20), $count, $since_id, $before_id);
@@ -234,10 +234,6 @@ class TwitapistatusesAction extends TwitterapiAction {
return;
}
- foreach ($_POST as $p => $v) {
- common_debug("_POST: $p = $v");
- }
-
$this->auth_user = $apidata['user'];
$user = $this->auth_user;
$status = $this->trimmed('status');
@@ -298,7 +294,8 @@ class TwitapistatusesAction extends TwitterapiAction {
}
}
- $notice = Notice::saveNew($user->id, $status, $source, 1, $reply_to);
+ $notice = Notice::saveNew($user->id, html_entity_decode($status, ENT_NOQUOTES, 'UTF-8'),
+ $source, 1, $reply_to);
if (is_string($notice)) {
$this->server_error($notice);