fix: make usernames and community titles case insensitive
This commit is contained in:
parent
f5b75382e5
commit
e7e9b49195
4 changed files with 15 additions and 4 deletions
|
@ -101,7 +101,7 @@ pub async fn feed_request(
|
|||
let data = data.read().await;
|
||||
let user = get_user_from_token!(jar, data.0);
|
||||
|
||||
let community = match data.0.get_community_by_title(&title).await {
|
||||
let community = match data.0.get_community_by_title(&title.to_lowercase()).await {
|
||||
Ok(ua) => ua,
|
||||
Err(e) => return Err(Html(render_error(e, &jar, &data, &user).await)),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue