mirror of
https://github.com/friendica/friendica
synced 2024-11-18 15:03:41 +00:00
Test tests
This commit is contained in:
parent
3c0f22b2dd
commit
84661e9468
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue