Compare commits

...

2 Commits

Author SHA1 Message Date
taichanne30 a33b5ca3d6
Add updated on NoteCreateService 2023-10-03 10:13:54 +09:00
taichanne30 de8c07bc10
Add Update 2023-10-03 09:36:37 +09:00
5 changed files with 4 additions and 2 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

@ -14,7 +14,6 @@ import { NotePiningService } from '@/core/NotePiningService.js';
import { UserBlockingService } from '@/core/UserBlockingService.js';
import { NoteDeleteService } from '@/core/NoteDeleteService.js';
import { NoteCreateService } from '@/core/NoteCreateService.js';
import { NoteUpdateService } from '@/core/NoteUpdateService.js';
import { concat, toArray, toSingle, unique } from '@/misc/prelude/array.js';
import { AppLockService } from '@/core/AppLockService.js';
import type Logger from '@/logger.js';
@ -74,7 +73,6 @@ export class ApInboxService {
private notePiningService: NotePiningService,
private userBlockingService: UserBlockingService,
private noteCreateService: NoteCreateService,
private noteUpdateService: NoteUpdateService,
private noteDeleteService: NoteDeleteService,
private appLockService: AppLockService,
private apResolverService: ApResolverService,

View File

@ -438,6 +438,7 @@ export class ApRendererService {
_misskey_quote: quote,
quoteUrl: quote,
published: note.createdAt.toISOString(),
updated: note.updatedAt?.toISOString() ?? undefined,
to,
cc,
inReplyTo,

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,

View File

@ -13,6 +13,7 @@ export interface IObject {
name?: string | null;
summary?: string;
published?: string;
updated?: string;
cc?: ApObject;
to?: ApObject;
attributedTo?: ApObject;