diff options
author | millette <millette@controlyourself.ca> | 2008-12-10 12:37:26 -0500 |
---|---|---|
committer | millette <millette@controlyourself.ca> | 2008-12-10 12:37:26 -0500 |
commit | 9553072e49518c8902a0ff7bc66bb18130dcf521 (patch) | |
tree | aad1e1d6bf50ac7f179477c6df3678b9a90ef253 /actions/twitapidirect_messages.php | |
parent | a143b6466641901db0536794e51cbfba756c4afd (diff) |
api posts cannot use one of the reserved sources: web, omb, mail or xmpp.
darcs-hash:20081210173726-099f7-5fc908c7330ec8b21d101c1498d5b78ab09ee490.gz
Diffstat (limited to 'actions/twitapidirect_messages.php')
-rw-r--r-- | actions/twitapidirect_messages.php | 3 |
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'; } |