scoped instead of auth_user->getProfile()
This commit is contained in:
parent
82b335dc2c
commit
6f410eda5c
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user