mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-20 16:45:16 +00:00
Return the like status of a user over a group
This commit is contained in:
@ -162,6 +162,7 @@ export class GroupsController {
|
||||
data["url"] = info.url ? info.hasURL : "null";
|
||||
|
||||
data["number_likes"] = await LikesHelper.Count(info.id, LikesType.GROUP);
|
||||
data["is_liking"] = h.signedIn ? await LikesHelper.IsLiking(h.getUserId(), info.id, LikesType.GROUP) : false;
|
||||
}
|
||||
|
||||
return data;
|
||||
|
Reference in New Issue
Block a user