mirror of
				https://github.com/pierre42100/ComunicAPI
				synced 2025-10-30 17:54:59 +00:00 
			
		
		
		
	Prepare group posts implementation.
This commit is contained in:
		| @@ -118,7 +118,7 @@ class Posts { | |||||||
| 		$visibilityLevel = $this->getUserVisibility($userID, $targetID); | 		$visibilityLevel = $this->getUserVisibility($userID, $targetID); | ||||||
|  |  | ||||||
| 		//Prepare the request on the database | 		//Prepare the request on the database | ||||||
| 		$conditions = "WHERE ID_personne = ? AND ("; | 		$conditions = "WHERE ID_personne = ? AND group_id = 0 AND ("; | ||||||
| 		$dataConds = array($targetID); | 		$dataConds = array($targetID); | ||||||
|  |  | ||||||
| 		//Add the visibility level conditions | 		//Add the visibility level conditions | ||||||
| @@ -188,7 +188,7 @@ class Posts { | |||||||
| 		//Process the list of friends of the user | 		//Process the list of friends of the user | ||||||
| 		foreach($friendsList as $friend){ | 		foreach($friendsList as $friend){ | ||||||
| 			$friendID = $friend->getFriendID(); | 			$friendID = $friend->getFriendID(); | ||||||
| 			$conditions .= " OR ID_personne = ?"; | 			$conditions .= " OR (ID_personne = ? AND group_id = 0)"; | ||||||
| 			$dataConds[] = $friendID; | 			$dataConds[] = $friendID; | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Pierre HUBERT
					Pierre HUBERT