Skip to content

Commit

Permalink
fix: allow fetching mutuals for bots
Browse files Browse the repository at this point in the history
  • Loading branch information
sussycatgirl committed Jul 6, 2023
1 parent 76150db commit 8456d14
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crates/delta/src/routes/users/find_mutual.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8456d14

Please sign in to comment.