From aa1a10f75b393c0539dab1c4f04dd48a7196ba0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Mon, 3 Aug 2026 06:22:06 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(server):=20search=20community?= =?UTF-8?q?=20by=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/server/src/request.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crates/server/src/request.rs b/crates/server/src/request.rs index 18ff17e..7132274 100644 --- a/crates/server/src/request.rs +++ b/crates/server/src/request.rs @@ -230,6 +230,17 @@ pub async fn handle_request( .collect(), )) } + Request::SearchCommunity(search_community) => { + let communities = Community::read_by_name( + search_community.get_community_name(), + database_connection, + ) + .await?; + + Ok(Response::SearchCommunity( + communities.into_iter().map(Into::into).collect(), + )) + } } };