Make NoteEdit entity match the database schema

This commit is contained in:
Hazelnoot 2025-04-13 19:19:49 -04:00
parent 353728929e
commit 8957cd9f3e
3 changed files with 9 additions and 10 deletions

View file

@ -45,11 +45,9 @@ export async function getNoteVersionsMenu(props: { note: Misskey.entities.Note }
await statePromise.then((versions) => {
for (const edit of versions) {
const _time = new Date(edit.oldDate).getTime();
menu.push({
icon: 'ph-pencil-simple ph-bold ph-lg',
text: _time ? dateTimeFormat.format(_time) : dateTimeFormat.format(new Date(edit.updatedAt)),
text: dateTimeFormat.format(new Date(edit.oldDate)),
action: () => openVersion(edit),
});
}