]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
scoped instead of auth_user->getProfile()
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 23 Jan 2015 13:32:39 +0000 (14:32 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 23 Jan 2015 13:32:39 +0000 (14:32 +0100)
actions/apimediaupload.php

index 2d81af157e06362db885ca5f62fb3643babcce7d..be561b0bceed83f6f13e40426346210908ebfaa2 100644 (file)
@@ -73,7 +73,7 @@ class ApiMediaUploadAction extends ApiAuthAction
         }
 
         // we could catch "NoUploadedMediaException" as "no media uploaded", but here we _always_ want an upload
-        $upload = MediaFile::fromUpload('media', $this->auth_user->getProfile());
+        $upload = MediaFile::fromUpload('media', $this->scoped);
 
         $this->showResponse($upload);
     }