From 083cd678abcd64325b9628895366c03b893e42ca Mon Sep 17 00:00:00 2001 From: okayurisotto Date: Mon, 3 Jul 2023 21:01:13 +0900 Subject: [PATCH] =?UTF-8?q?fixup!=20refactor(`ApPersonService.ts`):=20?= =?UTF-8?q?=E8=BF=94=E3=82=8A=E5=80=A4=E3=82=92`void`=E3=81=AB=E7=B5=B1?= =?UTF-8?q?=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/core/activitypub/ApInboxService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/core/activitypub/ApInboxService.ts b/packages/backend/src/core/activitypub/ApInboxService.ts index efef777fb0..3f47b7dc7a 100644 --- a/packages/backend/src/core/activitypub/ApInboxService.ts +++ b/packages/backend/src/core/activitypub/ApInboxService.ts @@ -738,11 +738,11 @@ export class ApInboxService { } @bindThis - private async move(actor: RemoteUser, activity: IMove): Promise { + private async move(actor: RemoteUser, activity: IMove): Promise { // fetch the new and old accounts const targetUri = getApHrefNullable(activity.target); - if (!targetUri) return 'skip: invalid activity target'; + if (!targetUri) return; - return await this.apPersonService.updatePerson(actor.uri) ?? 'skip: nothing to do'; + await this.apPersonService.updatePerson(actor.uri); } }