From cd4be4116bfd3c37f3ebd4e4c7e6b15bfbfbb91d Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sun, 6 Jan 2019 17:45:53 +0900 Subject: [PATCH] Fix sharedInbox recovery code (#3840) --- src/remote/activitypub/models/person.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts index f6c30ffb27..399c7ec889 100644 --- a/src/remote/activitypub/models/person.ts +++ b/src/remote/activitypub/models/person.ts @@ -376,6 +376,8 @@ export async function updatePerson(uri: string, resolver?: Resolver, hint?: obje $set: { '_follower.sharedInbox': person.sharedInbox || (person.endpoints ? person.endpoints.sharedInbox : undefined) } + }, { + multi: true }); await updateFeatured(exist._id).catch(err => console.log(err));