Commit 6f410eda authored by mmn's avatar mmn

scoped instead of auth_user->getProfile()

parent 82b335dc
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment