mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-23 13:59:29 +00:00
Get user likes in comments
This commit is contained in:
parent
0c64b153c9
commit
c10ee2a4f0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user