summaryrefslogtreecommitdiff
path: root/actions/twitapidirect_messages.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/twitapidirect_messages.php')
-rw-r--r--actions/twitapidirect_messages.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/twitapidirect_messages.php b/actions/twitapidirect_messages.php
index ed2d5c5d1..a04ae5fa7 100644
--- a/actions/twitapidirect_messages.php
+++ b/actions/twitapidirect_messages.php
@@ -104,7 +104,8 @@ class Twitapidirect_messagesAction extends TwitterapiAction {
$user = $apidata['user'];
$source = $this->trimmed('source'); // Not supported by Twitter.
- if (!$source) {
+ $reserved_sources = array('web', 'omb', 'mail', 'xmpp', 'api');
+ if (!$source || in_array($source, $reserved_sources)) {
$source = 'api';
}