From 6f410eda5c667642486a8d6bb9281374a47960dd Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 23 Jan 2015 14:32:39 +0100 Subject: [PATCH] scoped instead of auth_user->getProfile() --- actions/apimediaupload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5