1
0
Fork 0

Test tests

This commit is contained in:
Michael 2021-11-17 22:59:18 +00:00
parent 3c0f22b2dd
commit 84661e9468

View file

@ -599,7 +599,10 @@ function api_statuses_mediap($type)
{
$a = DI::app();
BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
if (empty(BaseApi::getCurrentUserID())) {
BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
throw new ForbiddenException();
}
$user_info = DI::twitterUser()->createFromUserId(BaseApi::getCurrentUserID())->toArray();