Testing tests again

This commit is contained in:
Michael 2021-11-17 23:03:18 +00:00
parent 84661e9468
commit a312940a21

View File

@ -600,10 +600,11 @@ function api_statuses_mediap($type)
$a = DI::app(); $a = DI::app();
if (empty(BaseApi::getCurrentUserID())) { if (empty(BaseApi::getCurrentUserID())) {
BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
throw new ForbiddenException(); throw new ForbiddenException();
} }
BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
$user_info = DI::twitterUser()->createFromUserId(BaseApi::getCurrentUserID())->toArray(); $user_info = DI::twitterUser()->createFromUserId(BaseApi::getCurrentUserID())->toArray();
$_REQUEST['profile_uid'] = BaseApi::getCurrentUserID(); $_REQUEST['profile_uid'] = BaseApi::getCurrentUserID();