mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Get single post informations
This commit is contained in:
		@@ -25,6 +25,25 @@ ComunicWeb.components.posts.interface = {
 | 
			
		||||
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Get single post informations
 | 
			
		||||
	 * 
 | 
			
		||||
	 * @param {int} postID The ID of the post to get
 | 
			
		||||
	 * @param {function} callback What to do once we got post informations
 | 
			
		||||
	 */
 | 
			
		||||
	get_single: function(postID, callback){
 | 
			
		||||
 | 
			
		||||
		//Prepare API request
 | 
			
		||||
		var APIuri = "posts/get_single";
 | 
			
		||||
		var params  = {
 | 
			
		||||
			postID: postID
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
		//Make the request
 | 
			
		||||
		ComunicWeb.common.api.makeAPIrequest(APIuri, params, true, callback);
 | 
			
		||||
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Send a new post
 | 
			
		||||
	 * 
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user