From e9649b36fce32e9fae769c795fb6f331ecb1a010 Mon Sep 17 00:00:00 2001 From: miko Date: Mon, 12 Aug 2024 19:08:59 +0300 Subject: [PATCH] Fix something --- server/services/v1/comments/list.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/services/v1/comments/list.go b/server/services/v1/comments/list.go index d8d2ced..3f81523 100644 --- a/server/services/v1/comments/list.go +++ b/server/services/v1/comments/list.go @@ -310,9 +310,9 @@ comments: if repliesCachedCount != nil && !repliesCachedCount.Expired() { alreadyInSet[comment.CommentID] = true item := populateItem(comment, channel, int(repliesCachedCount.Value().(int64))) - err = applyModStatus(&item, comment.ChannelID.String, comment.LbryClaimID) + err := applyModStatus(&item, comment.ChannelID.String, comment.LbryClaimID) if err != nil { - return err + return items, blockedCommentCnt, err } items = append(items, item) continue @@ -331,9 +331,9 @@ comments: } replies := val.(int64) item := populateItem(comment, channel, int(replies)) - err = applyModStatus(&item, comment.ChannelID.String, comment.LbryClaimID) + err := applyModStatus(&item, comment.ChannelID.String, comment.LbryClaimID) if err != nil { - return err + return items, blockedCommentCnt, err } items = append(items, item) }