enhance: リプライ元にアンケートがあることが表示されるように

Resolve #15998
This commit is contained in:
syuilo
2025-05-09 20:36:14 +09:00
parent 6a2dc2d2d2
commit bbe26607eb
5 changed files with 9 additions and 0 deletions

View File

@@ -429,6 +429,7 @@ export class NoteEntityService implements OnModuleInit {
userId: channel.userId,
} : undefined,
mentions: note.mentions.length > 0 ? note.mentions : undefined,
hasPoll: note.hasPoll || undefined,
uri: note.uri ?? undefined,
url: note.url ?? undefined,

View File

@@ -256,6 +256,10 @@ export const packedNoteSchema = {
type: 'number',
optional: true, nullable: false,
},
hasPoll: {
type: 'boolean',
optional: true, nullable: false,
},
myReaction: {
type: 'string',