fix: don't allow communities to be renamed to in-use names

This commit is contained in:
trisua 2025-04-12 10:15:47 -04:00
parent 5995aaf31c
commit e092d46586
7 changed files with 50 additions and 11 deletions

View file

@ -94,7 +94,7 @@ pub async fn update_title_request(
None => return Json(Error::NotAllowed.into()),
};
match data.update_community_title(id, user, req.title).await {
match data.update_community_title(id, user, &req.title).await {
Ok(_) => Json(ApiReturn {
ok: true,
message: "Community updated".to_string(),