mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-27 15: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))
|
if(!components()->accountImage->delete($userID))
|
||||||
return FALSE;
|
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))
|
if(!components()->backgroundImage->delete($userID))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user