fix: make usernames and community titles case insensitive

This commit is contained in:
trisua 2025-03-30 22:33:07 -04:00
parent f5b75382e5
commit e7e9b49195
4 changed files with 15 additions and 4 deletions

View file

@ -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)),
};