fix: allow fetching mutuals for bots

This commit is contained in:
Lea
2023-08-26 13:14:15 +01:00
committed by Paul Makles
parent 430df03b20
commit bfdd713d38
@@ -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)