mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 21:26:50 +00:00
Minor rewrites
This commit is contained in:
1 parent
bb26b749ae
commit
3caab50e0d
6 files changed
+51
-58
No files matched your search
@@ -32,7 +32,7 @@ pub(crate) async fn search_users_route(
|
||||
) -> Result<search_users::v3::Response> {
|
||||
let sender_user = body.sender_user();
|
||||
let limit = usize::try_from(body.limit)
|
||||
.map_or(LIMIT_DEFAULT, usize::from)
|
||||
.unwrap_or(LIMIT_DEFAULT)
|
||||
.min(LIMIT_MAX);
|
||||
|
||||
let search_term = body.search_term.to_lowercase();
|
||||
|
||||
Reference in new issue
Block a user