mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Get informations about a single comment.
This commit is contained in:
		@@ -6,6 +6,25 @@
 | 
			
		||||
 | 
			
		||||
ComunicWeb.components.comments.interface = {
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Get informations about a single comment
 | 
			
		||||
	 * 
 | 
			
		||||
	 * @param {number} commentID The ID of the comment to get
 | 
			
		||||
	 * @param {function} callback
 | 
			
		||||
	 */
 | 
			
		||||
	get_single: function(commentID, callback) {
 | 
			
		||||
 | 
			
		||||
		//Perform a request on the API
 | 
			
		||||
		var apiURI = "comments/get_single";
 | 
			
		||||
		var params = {
 | 
			
		||||
			commentID: commentID
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
		//Make the request
 | 
			
		||||
		ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
 | 
			
		||||
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Update a comment content
 | 
			
		||||
	 * 
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user