From 76def0032ee4b36e521473f5709a53d41e9adc49 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 15 Jul 2023 14:06:36 +0000 Subject: [PATCH] ? --- packages/backend/src/core/activitypub/ApRendererService.ts | 2 +- packages/backend/test/unit/activitypub.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/activitypub/ApRendererService.ts b/packages/backend/src/core/activitypub/ApRendererService.ts index e005a7ff7..797c6267b 100644 --- a/packages/backend/src/core/activitypub/ApRendererService.ts +++ b/packages/backend/src/core/activitypub/ApRendererService.ts @@ -80,7 +80,7 @@ export class ApRendererService { } @bindThis - public renderAnnounce(object: string | IObject | null, note: Note): IAnnounce { + public renderAnnounce(object: string | IObject, note: Note): IAnnounce { const attributedTo = this.userEntityService.genLocalUserUri(note.userId); let to: string[] = []; diff --git a/packages/backend/test/unit/activitypub.ts b/packages/backend/test/unit/activitypub.ts index e378cfeb6..45ad1bf44 100644 --- a/packages/backend/test/unit/activitypub.ts +++ b/packages/backend/test/unit/activitypub.ts @@ -248,7 +248,7 @@ describe('ActivityPub', () => { describe('Renderer', () => { test('Render an announce with visibility: followers', () => { - rendererService.renderAnnounce(null, { + rendererService.renderAnnounce('hoge', { createdAt: new Date(0), visibility: 'followers', } as Note);