From 9728270acd45069f3d56e8b9f2e3988bdcf4fc96 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 10 Oct 2015 17:15:29 +0200 Subject: [PATCH] Add mediahref in our incredibly arbitrary response --- actions/apimediaupload.php | 1 + 1 file changed, 1 insertion(+) 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(); }