Add mediahref in our incredibly arbitrary response

This commit is contained in:
Mikael Nordfeldth 2015-10-10 17:15:29 +02:00
parent 5d91c9a820
commit 9728270acd

View File

@ -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();
}