diff --git a/src/controllers/CommentsController.ts b/src/controllers/CommentsController.ts index 0706b9a..1b53fac 100644 --- a/src/controllers/CommentsController.ts +++ b/src/controllers/CommentsController.ts @@ -163,7 +163,7 @@ export class CommentsController { // Check if we have to load like information if(!assumeNoLike) { data.likes = await LikesHelper.Count(c.id, LikesType.COMMENT); - data.userlike = h.signedIn ? await LikesHelper.IsLiking(h.getUserId(), c.id, LikesType.COMMENT) : false; + data.userlike = data.likes > 0 && h.signedIn ? await LikesHelper.IsLiking(h.getUserId(), c.id, LikesType.COMMENT) : false; } return data;