]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add mediahref in our incredibly arbitrary response
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 10 Oct 2015 15:15:29 +0000 (17:15 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 10 Oct 2015 15:15:29 +0000 (17:15 +0200)
actions/apimediaupload.php

index 155cad0884ae31d55bc71a27c2c0961f79a7da22..fedaef17482076e29bb75f5d3542724c87f087c4 100644 (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();
     }