forked from GNUsocial/gnu-social
Add mediahref in our incredibly arbitrary response
This commit is contained in:
parent
5d91c9a820
commit
9728270acd
@ -94,6 +94,7 @@ class ApiMediaUploadAction extends ApiAuthAction
|
||||
$this->elementStart('rsp', array('stat' => 'ok'));
|
||||
$this->element('mediaid', null, $upload->fileRecord->id);
|
||||
$this->element('mediaurl', null, $upload->shortUrl());
|
||||
$this->element('mediahref', null, $upload->fileRecord->getUrl());
|
||||
$this->elementEnd('rsp');
|
||||
$this->endDocument();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user