scoped instead of auth_user->getProfile()

This commit is contained in:
Mikael Nordfeldth 2015-01-23 14:32:39 +01:00
parent 82b335dc2c
commit 6f410eda5c
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class ApiMediaUploadAction extends ApiAuthAction
} }
// we could catch "NoUploadedMediaException" as "no media uploaded", but here we _always_ want an upload // 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); $this->showResponse($upload);
} }