Get user likes in comments

This commit is contained in:
Pierre 2017-12-31 17:40:49 +01:00
parent 0c64b153c9
commit c10ee2a4f0

View File

@ -62,6 +62,10 @@ class Comments {
$info["img_url"] = null;
}
//Get informations about likes
$info["likes"] = CS::get()->components->likes->count($info["ID"], Likes::LIKE_COMMENT);
$info["userlike"] = user_signed_in() ? CS::get()->components->likes->is_liking(userID, $info["ID"], Likes::LIKE_COMMENT) : false;
return $info;
}