From: Mikael Nordfeldth Date: Fri, 23 Jan 2015 13:32:39 +0000 (+0100) Subject: scoped instead of auth_user->getProfile() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6f410eda5c667642486a8d6bb9281374a47960dd;p=quix0rs-gnu-social.git scoped instead of auth_user->getProfile() --- diff --git a/actions/apimediaupload.php b/actions/apimediaupload.php index 2d81af157e..be561b0bce 100644 --- a/actions/apimediaupload.php +++ b/actions/apimediaupload.php @@ -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); }