From 80c52433cc501dba736f27feef428e902a1f95f3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 13 Jun 2018 05:15:26 +0900 Subject: [PATCH] Fix bug --- src/remote/activitypub/kernel/announce/note.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/remote/activitypub/kernel/announce/note.ts b/src/remote/activitypub/kernel/announce/note.ts index fe645b07b..e25856738 100644 --- a/src/remote/activitypub/kernel/announce/note.ts +++ b/src/remote/activitypub/kernel/announce/note.ts @@ -15,6 +15,11 @@ const log = debug('misskey:activitypub'); export default async function(resolver: Resolver, actor: IRemoteUser, activity: IAnnounce, note: INote): Promise { const uri = activity.id || activity; + // アナウンサーが凍結されていたらスキップ + if (actor.isSuspended) { + return; + } + if (typeof uri !== 'string') { throw new Error('invalid announce'); }