fix: don't allow communities to be renamed to in-use names
This commit is contained in:
parent
5995aaf31c
commit
e092d46586
7 changed files with 50 additions and 11 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue