fix(backend): 名前を空白文字列だけにできる問題を修正 (#14119)
* fix(backend): 名前を空白文字列だけにできる問題を修正
* Update Changelog
* fix test
* Unicodeを含める
* fix
* ユーザー名がUnicode制御文字とスペースのみで構成される場合はnullに
* Revert "ユーザー名がUnicode制御文字とスペースのみで構成される場合はnullに"
This reverts commit 6c752a69c0.
* [ci skip] changelog typo
			
			
This commit is contained in:
		| @@ -257,7 +257,14 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | ||||
|  | ||||
| 			const profile = await this.userProfilesRepository.findOneByOrFail({ userId: user.id }); | ||||
|  | ||||
| 			if (ps.name !== undefined) updates.name = ps.name; | ||||
| 			if (ps.name !== undefined) { | ||||
| 				if (ps.name === null) { | ||||
| 					updates.name = null; | ||||
| 				} else { | ||||
| 					const trimmedName = ps.name.trim(); | ||||
| 					updates.name = trimmedName === '' ? null : trimmedName; | ||||
| 				} | ||||
| 			} | ||||
| 			if (ps.description !== undefined) profileUpdates.description = ps.description; | ||||
| 			if (ps.lang !== undefined) profileUpdates.lang = ps.lang; | ||||
| 			if (ps.location !== undefined) profileUpdates.location = ps.location; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 かっこかり
					かっこかり