From d852cc2789d8a4e153b2c84103a4a2f01b637d09 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 17 Apr 2018 16:06:55 +0900 Subject: [PATCH] Fix bug --- src/remote/activitypub/models/note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote/activitypub/models/note.ts b/src/remote/activitypub/models/note.ts index 221d502f0..ab6dd99a7 100644 --- a/src/remote/activitypub/models/note.ts +++ b/src/remote/activitypub/models/note.ts @@ -76,7 +76,7 @@ export async function createNote(value: any, resolver?: Resolver, silent = false const { window } = new JSDOM(note.content); // ユーザーの情報が古かったらついでに更新しておく - if (actor.updatedAt && Date.now() - actor.updatedAt.getTime() > 1000 * 60 * 60 * 24) { + if (actor.updatedAt == null || Date.now() - actor.updatedAt.getTime() > 1000 * 60 * 60 * 24) { updatePerson(note.attributedTo); }