mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	fix for category view when its empty
This commit is contained in:
		@@ -79,6 +79,7 @@ marked.setOptions({
 | 
			
		||||
					privileges = results[2];
 | 
			
		||||
 | 
			
		||||
				for(var i=0; i<postData.length; ++i) {
 | 
			
		||||
					postData[i].fav_button_class = fav_data[postData[i].pid]? 'btn-warning' : '';
 | 
			
		||||
					postData[i].fav_star_class = fav_data[postData[i].pid] ? 'icon-star' : 'icon-star-empty';
 | 
			
		||||
					postData[i]['display_moderator_tools'] = (postData[i].uid == current_user || privileges.editable) ? 'show' : 'none';
 | 
			
		||||
					postData[i].show_banned = postData[i].user_banned === '1'?'show':'hide';
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user