From: Mikael Nordfeldth Date: Sat, 10 Oct 2015 15:15:29 +0000 (+0200) Subject: Add mediahref in our incredibly arbitrary response X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9728270acd45069f3d56e8b9f2e3988bdcf4fc96;p=quix0rs-gnu-social.git Add mediahref in our incredibly arbitrary response --- 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(); }