feat: フォローされた際のメッセージを設定できるようにする (#14430)
* feat: フォローされた際のメッセージを設定できるようにする Resolve #14425 * Update CHANGELOG.md * 既にフォローしているユーザーのメッセージも見れるように * Update packages/frontend/src/components/MkNotification.vue Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> * fix indent * Update users.ts * wip * Update users.ts --------- Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
This commit is contained in:
		| @@ -59,7 +59,7 @@ export class NotificationEntityService implements OnModuleInit { | ||||
| 	async #packInternal <T extends MiNotification | MiGroupedNotification> ( | ||||
| 		src: T, | ||||
| 		meId: MiUser['id'], | ||||
| 		// eslint-disable-next-line @typescript-eslint/ban-types | ||||
| 		  | ||||
| 		options: { | ||||
| 			checkValidNotifier?: boolean; | ||||
| 		}, | ||||
| @@ -159,6 +159,9 @@ export class NotificationEntityService implements OnModuleInit { | ||||
| 			...(notification.type === 'roleAssigned' ? { | ||||
| 				role: role, | ||||
| 			} : {}), | ||||
| 			...(notification.type === 'followRequestAccepted' ? { | ||||
| 				message: notification.message, | ||||
| 			} : {}), | ||||
| 			...(notification.type === 'achievementEarned' ? { | ||||
| 				achievement: notification.achievement, | ||||
| 			} : {}), | ||||
| @@ -233,7 +236,7 @@ export class NotificationEntityService implements OnModuleInit { | ||||
| 	public async pack( | ||||
| 		src: MiNotification | MiGroupedNotification, | ||||
| 		meId: MiUser['id'], | ||||
| 		// eslint-disable-next-line @typescript-eslint/ban-types | ||||
| 		  | ||||
| 		options: { | ||||
| 			checkValidNotifier?: boolean; | ||||
| 		}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo