Fix sharedInbox recovery code (#3840)

This commit is contained in:
MeiMei 2019-01-06 17:45:53 +09:00 committed by syuilo
parent 3cc9fa343b
commit 2c65dec71e

View file

@ -376,6 +376,8 @@ export async function updatePerson(uri: string, resolver?: Resolver, hint?: obje
$set: { $set: {
'_follower.sharedInbox': person.sharedInbox || (person.endpoints ? person.endpoints.sharedInbox : undefined) '_follower.sharedInbox': person.sharedInbox || (person.endpoints ? person.endpoints.sharedInbox : undefined)
} }
}, {
multi: true
}); });
await updateFeatured(exist._id).catch(err => console.log(err)); await updateFeatured(exist._id).catch(err => console.log(err));