diff options
author | Zach Copley <zach@status.net> | 2010-05-07 16:32:24 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-05-07 17:22:16 -0700 |
commit | da18701394ef717cd68dad11f5a830719ad675e6 (patch) | |
tree | 025337dbde9473a6122fb103716be13d75df2c22 /actions/apistatusesupdate.php | |
parent | 06a63b0404aa96efc1118563482c11567b048961 (diff) |
Fix for repeats from the API having null source attribution
Diffstat (limited to 'actions/apistatusesupdate.php')
-rw-r--r-- | actions/apistatusesupdate.php | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/actions/apistatusesupdate.php b/actions/apistatusesupdate.php index 5f3a447c2..a0a81f336 100644 --- a/actions/apistatusesupdate.php +++ b/actions/apistatusesupdate.php @@ -155,8 +155,6 @@ class ApiStatusesUpdateAction extends ApiAuthAction var $lat = null; var $lon = null; - static $reserved_sources = array('web', 'omb', 'mail', 'xmpp', 'api'); - /** * Take arguments for running * @@ -171,19 +169,9 @@ class ApiStatusesUpdateAction extends ApiAuthAction parent::prepare($args); $this->status = $this->trimmed('status'); - $this->source = $this->trimmed('source'); $this->lat = $this->trimmed('lat'); $this->lon = $this->trimmed('long'); - // try to set the source attr from OAuth app - if (empty($this->source)) { - $this->source = $this->oauth_source; - } - - if (empty($this->source) || in_array($this->source, self::$reserved_sources)) { - $this->source = 'api'; - } - $this->in_reply_to_status_id = intval($this->trimmed('in_reply_to_status_id')); |