chore: add isSensitive of channel to Note object
This commit is contained in:
		
							parent
							
								
									c5cbbbdc68
								
							
						
					
					
						commit
						966026b471
					
				|  | @ -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, | ||||
|  |  | |||
|  | @ -139,6 +139,10 @@ export const packedNoteSchema = { | |||
| 						type: 'string', | ||||
| 						optional: false, nullable: true, | ||||
| 					}, | ||||
| 					isSensitive: { | ||||
| 						type: 'boolean', | ||||
| 						optional: true, nullable: false, | ||||
| 					} | ||||
| 				}, | ||||
| 			}, | ||||
| 		}, | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue