show correct self profile in api
This commit is contained in:
		
					parent
					
						
							
								60caffcd77
							
						
					
				
			
			
				commit
				
					
						149d52da8b
					
				
			
		
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -201,7 +201,7 @@
 | 
			
		|||
				api_login($a); return False;
 | 
			
		||||
			} else {
 | 
			
		||||
				$user = $_SESSION['uid'];
 | 
			
		||||
				$extra_query = "AND `contact`.`uid` = %d ";
 | 
			
		||||
				$extra_query = "AND `contact`.`uid` = %d AND `contact`.`self` = 1 ";
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue