summaryrefslogtreecommitdiff
path: root/actions/apidirectmessagenew.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-05-07 16:32:24 -0700
committerZach Copley <zach@status.net>2010-05-07 17:22:16 -0700
commitda18701394ef717cd68dad11f5a830719ad675e6 (patch)
tree025337dbde9473a6122fb103716be13d75df2c22 /actions/apidirectmessagenew.php
parent06a63b0404aa96efc1118563482c11567b048961 (diff)
Fix for repeats from the API having null source attribution
Diffstat (limited to 'actions/apidirectmessagenew.php')
-rw-r--r--actions/apidirectmessagenew.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/actions/apidirectmessagenew.php b/actions/apidirectmessagenew.php
index b9ac92d77..65d065648 100644
--- a/actions/apidirectmessagenew.php
+++ b/actions/apidirectmessagenew.php
@@ -52,7 +52,6 @@ require_once INSTALLDIR . '/lib/apiauth.php';
class ApiDirectMessageNewAction extends ApiAuthAction
{
- var $source = null;
var $other = null;
var $content = null;
@@ -76,13 +75,6 @@ class ApiDirectMessageNewAction extends ApiAuthAction
return;
}
- $this->source = $this->trimmed('source'); // Not supported by Twitter.
-
- $reserved_sources = array('web', 'omb', 'mail', 'xmpp', 'api');
- if (empty($this->source) || in_array($this->source, $reserved_sources)) {
- $source = 'api';
- }
-
$this->content = $this->trimmed('text');
$this->user = $this->auth_user;