enhance: 非通知なお知らせを作成できるように
This commit is contained in:
		| @@ -58,6 +58,7 @@ export const paramDef = { | ||||
| 		icon: { type: 'string', enum: ['info', 'warning', 'error', 'success'], default: 'info' }, | ||||
| 		display: { type: 'string', enum: ['normal', 'banner', 'dialog'], default: 'normal' }, | ||||
| 		forExistingUsers: { type: 'boolean', default: false }, | ||||
| 		silence: { type: 'boolean', default: false }, | ||||
| 		needConfirmationToRead: { type: 'boolean', default: false }, | ||||
| 		userId: { type: 'string', format: 'misskey:id', nullable: true, default: null }, | ||||
| 	}, | ||||
| @@ -78,6 +79,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | ||||
| 				icon: ps.icon, | ||||
| 				display: ps.display, | ||||
| 				forExistingUsers: ps.forExistingUsers, | ||||
| 				silence: ps.silence, | ||||
| 				needConfirmationToRead: ps.needConfirmationToRead, | ||||
| 				userId: ps.userId, | ||||
| 			}, me); | ||||
|   | ||||
| @@ -114,6 +114,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | ||||
| 				display: announcement.display, | ||||
| 				isActive: announcement.isActive, | ||||
| 				forExistingUsers: announcement.forExistingUsers, | ||||
| 				silence: announcement.silence, | ||||
| 				needConfirmationToRead: announcement.needConfirmationToRead, | ||||
| 				userId: announcement.userId, | ||||
| 				reads: reads.get(announcement)!, | ||||
|   | ||||
| @@ -35,6 +35,7 @@ export const paramDef = { | ||||
| 		icon: { type: 'string', enum: ['info', 'warning', 'error', 'success'] }, | ||||
| 		display: { type: 'string', enum: ['normal', 'banner', 'dialog'] }, | ||||
| 		forExistingUsers: { type: 'boolean' }, | ||||
| 		silence: { type: 'boolean' }, | ||||
| 		needConfirmationToRead: { type: 'boolean' }, | ||||
| 		isActive: { type: 'boolean' }, | ||||
| 	}, | ||||
| @@ -63,6 +64,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | ||||
| 				display: ps.display, | ||||
| 				icon: ps.icon, | ||||
| 				forExistingUsers: ps.forExistingUsers, | ||||
| 				silence: ps.silence, | ||||
| 				needConfirmationToRead: ps.needConfirmationToRead, | ||||
| 				isActive: ps.isActive, | ||||
| 			}, me); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo