fix: allow fetching mutuals for bots

This commit is contained in:
Lea
2023-07-06 20:58:49 +02:00
committed by Paul Makles
parent 430df03b20
commit bfdd713d38

View File

@@ -24,10 +24,6 @@ pub async fn req(db: &State<Database>, user: User, target: Ref) -> Result<Json<M
return Err(Error::InvalidOperation);
}
if user.bot.is_some() {
return Err(Error::IsBot);
}
let target = target.as_user(db).await?;
if perms(&user)