1
0
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:
2019-12-25 15:31:41 +01:00
parent 91f0413963
commit 7b36e092b1
2 changed files with 21 additions and 0 deletions

View File

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