Delete likes on user page on account deletion

This commit is contained in:
Pierre HUBERT 2019-04-26 23:18:58 +02:00
parent 5ac5f17eac
commit 8a91a42e83

View File

@ -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;