datasize not meaningful when all size are returned in api/friendica/photo
This commit is contained in:
		
					parent
					
						
							
								0664ace260
							
						
					
				
			
			
				commit
				
					
						79c32105fc
					
				
			
		
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -2873,6 +2873,8 @@
 | 
			
		|||
			$data = array('photo' => $r[0]);
 | 
			
		||||
			if ($scale !== false) {
 | 
			
		||||
				$data['photo']['data'] = base64_encode($data['photo']['data']);
 | 
			
		||||
			} else {
 | 
			
		||||
				unset($data['photo']['datasize']); //needed only with scale param
 | 
			
		||||
			}
 | 
			
		||||
			$data['photo']['link'] = array();
 | 
			
		||||
			for($k=intval($data['photo']['minscale']); $k<=intval($data['photo']['maxscale']); $k++) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue