merge: branch 'master' into insert/dev-branch

This commit is contained in:
Paul Makles
2023-08-26 13:34:44 +01:00
13 changed files with 189 additions and 94 deletions

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)