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…
	
	Add table
		Add a link
		
	
		Reference in a new issue