From aa0516d984b017bb1ee0404533fcceb81e667f6b Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Tue, 3 Apr 2018 22:19:11 +0900 Subject: [PATCH] Wait for promise to resolve in Undo activity handler --- src/remote/activitypub/act/undo/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/remote/activitypub/act/undo/index.ts b/src/remote/activitypub/act/undo/index.ts index d104eeb80c..38d5bfe211 100644 --- a/src/remote/activitypub/act/undo/index.ts +++ b/src/remote/activitypub/act/undo/index.ts @@ -9,7 +9,9 @@ export default async (resolver: Resolver, actor, activity) => { const results = await act(resolver, actor, activity.object); - await Promise.all(results.map(async result => { + await Promise.all(results.map(async promisedResult => { + const result = await promisedResult; + if (result === null) { return; }