summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/remote/activitypub/models/person.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts
index c2b99dfb04..d27c937988 100644
--- a/src/remote/activitypub/models/person.ts
+++ b/src/remote/activitypub/models/person.ts
@@ -294,6 +294,13 @@ 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;