1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-17 09:05:35 +02:00

Fix: リモートユーザーの修復処理が自動的に実行されない for v10 (#4763)

* Fix: ユーザーresyncが自動実行されない

* ここにあっても意味がない

* lastFetchedAt事前更新はWebFingerする前のみ

* lint fix
This commit is contained in:
MeiMei
2019-04-21 23:56:56 +09:00
committed by syuilo
parent 7d31bd97ff
commit 98b8a94f2b
3 changed files with 14 additions and 20 deletions

View File

@@ -294,13 +294,6 @@ export async function updatePerson(uri: string, resolver?: Resolver, hint?: obje
}
//#endregion
// 繋がらないインスタンスに何回も試行するのを防ぐ, 後続の同様処理の連続試行を防ぐ ため 試行前にも更新する
await User.update({ _id: exist._id }, {
$set: {
lastFetchedAt: new Date(),
},
});
if (resolver == null) resolver = new Resolver();
const object = hint || await resolver.resolve(uri) as any;