diff options
author | Zach Copley <zach@status.net> | 2010-05-07 16:32:24 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-05-07 16:32:24 -0700 |
commit | 3c9686e80f50f24f302abf5dd27b74a44fa4ae56 (patch) | |
tree | 72b1a7e0c9a817b80110e49b99c79ed615f911ca /actions/apidirectmessagenew.php | |
parent | d57e1deaec7406c63f70b8a5664746d18c1125ff (diff) |
Fix for repeats from the API having null source attribution
Diffstat (limited to 'actions/apidirectmessagenew.php')
-rw-r--r-- | actions/apidirectmessagenew.php | 8 |
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; |