chore: add isSensitive of channel to Note object

This commit is contained in:
anatawa12 2023-07-31 16:59:38 +09:00
parent c5cbbbdc68
commit 966026b471
No known key found for this signature in database
GPG Key ID: 9CA909848B8E4EA6
2 changed files with 5 additions and 0 deletions

View File

@ -339,6 +339,7 @@ export class NoteEntityService implements OnModuleInit {
id: channel.id,
name: channel.name,
color: channel.color,
isSensitive: channel.isSensitive,
} : undefined,
mentions: note.mentions.length > 0 ? note.mentions : undefined,
uri: note.uri ?? undefined,

View File

@ -139,6 +139,10 @@ export const packedNoteSchema = {
type: 'string',
optional: false, nullable: true,
},
isSensitive: {
type: 'boolean',
optional: true, nullable: false,
}
},
},
},