upd: add backend for post editing

This commit is contained in:
Mar0xy 2023-09-22 21:05:42 +02:00
parent deb8f73127
commit feec3c302b
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
16 changed files with 1310 additions and 2 deletions

View file

@ -335,9 +335,10 @@ export class NoteEntityService implements OnModuleInit {
color: channel.color,
isSensitive: channel.isSensitive,
} : undefined,
mentions: note.mentions.length > 0 ? note.mentions : undefined,
mentions: note.mentions && note.mentions.length > 0 ? note.mentions : undefined,
uri: note.uri ?? undefined,
url: note.url ?? undefined,
updatedAt: note.updatedAt != null ? note.updatedAt.toISOString() : undefined,
...(opts.detail ? {
clippedCount: note.clippedCount,