mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Can like comments
This commit is contained in:
		@@ -251,6 +251,27 @@ ComunicWeb.components.comments.ui = {
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		//Load likes
 | 
			
		||||
		var likesTarget = createElem2({
 | 
			
		||||
			appendTo: commentText,
 | 
			
		||||
			type: "div",
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		var userLiking = null;
 | 
			
		||||
		if(signed_in()){
 | 
			
		||||
			userLiking = infos.userlike;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		//Call component
 | 
			
		||||
		ComunicWeb.components.like.button.display(
 | 
			
		||||
			"comment",
 | 
			
		||||
			infos.ID,
 | 
			
		||||
			infos.likes,
 | 
			
		||||
			userLiking,
 | 
			
		||||
			likesTarget
 | 
			
		||||
		);
 | 
			
		||||
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user