fix: note.updatedAt might be null
This commit is contained in:
parent
293afc7fe4
commit
6d4cb5b4aa
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue