mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-23 13:59:29 +00:00
Delete likes on user page on account deletion
This commit is contained in:
parent
5ac5f17eac
commit
8a91a42e83
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user