fix: disable search for bots

Signed-off-by: Zomatree <me@zomatree.live>
This commit is contained in:
Zomatree
2026-03-21 02:57:13 +00:00
parent 19df5c5ef5
commit 083f071c30

View File

@@ -15,6 +15,10 @@ pub async fn search_messages(
user: User,
data: Json<v0::DataChannelMessagesSearch>,
) -> Result<Json<v0::BulkMessageResponse>> {
if user.bot.is_some() {
return Err(create_error!(IsBot));
}
let data = data.into_inner();
if (data.server.is_some() && data.channel.is_some())