mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-19 08:35:18 +00:00
Can delete all the notifications related with a user
This commit is contained in:
@ -262,7 +262,7 @@ class AccountComponent {
|
||||
public function delete(int $userID) : bool {
|
||||
|
||||
//Delete user comments
|
||||
if(!components()->comments->deleteAllUser($userID))
|
||||
/*if(!components()->comments->deleteAllUser($userID))
|
||||
return false;
|
||||
|
||||
//Delete user posts
|
||||
@ -278,12 +278,20 @@ class AccountComponent {
|
||||
return false;
|
||||
|
||||
//Delete user movies
|
||||
if(!components()->movies->deleteAllUser($userID))
|
||||
return FALSE;
|
||||
|
||||
//Delete conversation messages
|
||||
if(!components()->conversations->deleteAllUserMessages($userID))
|
||||
return FALSE;
|
||||
|
||||
//Remove users from all its conversations
|
||||
if(!components()->conversations->deleteAllUserConversations($userID))
|
||||
return FALSE;*/
|
||||
|
||||
//Delete all the notifications related with the user
|
||||
if(!components()->notifications->deleteAllRelatedWithUser($userID))
|
||||
return FALSE;
|
||||
|
||||
//Delete all user friends, including friendship requests
|
||||
|
||||
|
Reference in New Issue
Block a user