fix child count
This commit is contained in:
		
					parent
					
						
							
								20be1778db
							
						
					
				
			
			
				commit
				
					
						95bf9324b4
					
				
			
		
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -336,11 +336,13 @@ function prepare_threads_body($a, $items, $cmnt_tpl, $page_writeable, $mode, $pr
 | 
			
		|||
		if($item['network'] === NETWORK_MAIL && local_user() != $item['uid']) {
 | 
			
		||||
			// Don't count it as a visible item
 | 
			
		||||
			$nb_items--;
 | 
			
		||||
			$total_children = $nb_items;
 | 
			
		||||
			continue;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if($item['verb'] === ACTIVITY_LIKE || $item['verb'] === ACTIVITY_DISLIKE) {
 | 
			
		||||
			$nb_items --;
 | 
			
		||||
			$total_children = $nb_items;
 | 
			
		||||
			continue;
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue