1
0
mirror of https://github.com/pierre42100/ComunicAPI synced 2025-07-15 06:18:08 +00:00

Fetch informations about pages like

This commit is contained in:
Pierre
2017-12-29 08:14:38 +01:00
parent 22d2ea2c1c
commit 73cb430db5
3 changed files with 83 additions and 0 deletions
RestControllers
classes/components

@ -260,6 +260,9 @@ class User{
//Add background image url
$return['backgroundImage'] = CS::get()->components->backgroundImage->getPath($return['userID']);
//Get the number of likes of the page
$return['pageLikes'] = CS::get()->components->likes->count($return['userID'], Likes::LIKE_USER);
}
//Return result