fix(frontend): search user with trailing space (#11184)
* fix(frontend): search user with trailing space * fix(backend): search user with trailing space * Update search.ts --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
parent
0fbb46c981
commit
e40a0b98e4
4 changed files with 5 additions and 2 deletions
|
@ -91,6 +91,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||
let user;
|
||||
|
||||
const isModerator = await this.roleService.isModerator(me);
|
||||
ps.username = ps.username?.trim();
|
||||
|
||||
if (ps.userIds) {
|
||||
if (ps.userIds.length === 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue