Add updated on NoteCreateService

This commit is contained in:
taichanne30 2023-10-03 10:13:54 +09:00
parent de8c07bc10
commit a33b5ca3d6
No known key found for this signature in database
GPG Key ID: 1D5EE39F870DC283
2 changed files with 2 additions and 0 deletions

View File

@ -126,6 +126,7 @@ type MinimumUser = {
type Option = {
createdAt?: Date | null;
updatedAt?: Date | null;
name?: string | null;
text?: string | null;
reply?: MiNote | null;

View File

@ -274,6 +274,7 @@ export class ApNoteService {
try {
return await this.noteCreateService.create(actor, {
createdAt: note.published ? new Date(note.published) : null,
updatedAt: note.updated ? new Date(note.updated) : null,
files,
reply,
renote: quote,