diff --git a/actions/apimediaupload.php b/actions/apimediaupload.php index 155cad0884..fedaef1748 100644 --- a/actions/apimediaupload.php +++ b/actions/apimediaupload.php @@ -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(); }