mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-19 00:25:18 +00:00
Delete likes on user page on account deletion
This commit is contained in:
@ -449,6 +449,10 @@ class AccountComponent {
|
||||
if(!components()->accountImage->delete($userID))
|
||||
return FALSE;
|
||||
|
||||
//Delete all the likes on the user page
|
||||
if(!components()->likes->delete_all($userID, Likes::LIKE_USER))
|
||||
return FALSE;
|
||||
|
||||
if(!components()->backgroundImage->delete($userID))
|
||||
return FALSE;
|
||||
|
||||
|
Reference in New Issue
Block a user