summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/twitapidirect_messages.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/actions/twitapidirect_messages.php b/actions/twitapidirect_messages.php
index a31d18a5c..d6eaf844e 100644
--- a/actions/twitapidirect_messages.php
+++ b/actions/twitapidirect_messages.php
@@ -133,8 +133,9 @@ class Twitapidirect_messagesAction extends TwitterapiAction {
$code = 403, $apidata['content-type']);
return;
}
-
- $message = Message::saveNew($user->id, $other->id, $content, $source);
+
+ $message = Message::saveNew($user->id, $other->id,
+ html_entity_decode($content, ENT_NOQUOTES, 'UTF-8'), $source);
if (is_string($message)) {
$this->server_error($message);