From c2207d78ffa6c41149d1e22c4f8ec872e56722b7 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); }