mirror of
				https://github.com/pierre42100/ComunicAPI
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Fix issue : Delete likes of a group when deleting it
This commit is contained in:
		@@ -708,6 +708,10 @@ class GroupsComponent {
 | 
			
		||||
	 */
 | 
			
		||||
	public function delete_group(int $groupID) : bool {
 | 
			
		||||
 | 
			
		||||
		// Delete all the likes of the group
 | 
			
		||||
		if(!components()->likes->delete_all($groupID, Likes::LIKE_GROUP))
 | 
			
		||||
			return FALSE;
 | 
			
		||||
 | 
			
		||||
		//Delete group image
 | 
			
		||||
		if(!$this->deleteLogo($groupID))
 | 
			
		||||
			return FALSE;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user