mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-19 08:35: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))
|
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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user