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-08 00:07:42 +0000
commitfba140f4e0246a244664f0c0fb2361b027508d35 (patch)
tree072e877e529eb05687300efc724d8fe44cc42ac4 /actions/apidirectmessagenew.php
parent79153869505c9bfb41b7e49b757f233dc19530bb (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;