forked from GNUsocial/gnu-social
typo fix: '$this' now spelled correctly. Looks like this'll fix acceptance of 'source' param for direct messages posted to API
@fixme: there's duplication of reserved sources list between at least this and apistatusesupdate module
This commit is contained in:
parent
7591439451
commit
e28e8cc1d7
@ -79,7 +79,7 @@ class ApiDirectMessageNewAction extends ApiAuthAction
|
||||
$this->source = $this->trimmed('source'); // Not supported by Twitter.
|
||||
|
||||
$reserved_sources = array('web', 'omb', 'mail', 'xmpp', 'api');
|
||||
if (empty($thtis->source) || in_array($this->source, $reserved_sources)) {
|
||||
if (empty($this->source) || in_array($this->source, $reserved_sources)) {
|
||||
$source = 'api';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user