diff --git a/server/lib/activitypub/actors/refresh.ts b/server/lib/activitypub/actors/refresh.ts index 9758649a5..1f7cfcd8f 100644 --- a/server/lib/activitypub/actors/refresh.ts +++ b/server/lib/activitypub/actors/refresh.ts @@ -1,4 +1,4 @@ -import { logger } from '@server/helpers/logger' +import { logger, loggerTagsFactory } from '@server/helpers/logger' import { PeerTubeRequestError } from '@server/helpers/requests' import { ActorLoadByUrlType } from '@server/lib/model-loaders' import { ActorModel } from '@server/models/actor/actor' @@ -19,6 +19,10 @@ async function refreshActorIfNeeded t.text === 'comment user 1') expect(t).to.be.undefined @@ -565,7 +565,7 @@ describe('Test blocklist', function () { threads = threads.filter(t => t.isDeleted === false) expect(threads).to.have.lengthOf(1) - expect(threads[0].totalReplies).to.equal(0) + expect(threads[0].totalReplies).to.equal(1) const t = threads.find(t => t.text === 'comment user 1') expect(t).to.be.undefined diff --git a/server/tests/api/server/follows.ts b/server/tests/api/server/follows.ts index e1c062020..9e5aa00c7 100644 --- a/server/tests/api/server/follows.ts +++ b/server/tests/api/server/follows.ts @@ -519,7 +519,7 @@ describe('Test follows', function () { expect(deletedComment.text).to.equal('') expect(deletedComment.inReplyToCommentId).to.be.null expect(deletedComment.account).to.be.null - expect(deletedComment.totalReplies).to.equal(3) + expect(deletedComment.totalReplies).to.equal(2) expect(dateIsValid(deletedComment.deletedAt as string)).to.be.true const res2 = await getVideoThreadComments(servers[0].url, video4.id, deletedComment.threadId)