fix: note.updatedAt might be null

This commit is contained in:
Lhcfl 2024-04-01 00:40:58 +08:00
parent 293afc7fe4
commit 6d4cb5b4aa
1 changed files with 1 additions and 1 deletions

View File

@ -639,7 +639,7 @@ export default define(meta, paramDef, async (ps, user) => {
(async () => {
const noteActivity = await renderNote(note, false);
noteActivity.updated = note.updatedAt.toISOString();
noteActivity.updated = (new Date()).toISOString();
const updateActivity = renderUpdate(noteActivity, user);
updateActivity.to = noteActivity.to;
updateActivity.cc = noteActivity.cc;