This commit is contained in:
Armaël Guéneau 2024-12-21 10:42:43 +01:00
parent f8375ca188
commit 34ef744aeb

View file

@ -170,7 +170,7 @@ pub async fn purge_spammer_accounts(
// Since this can fail, we put it into a worker that periodically retries on any
// user marked as spam and not already locked/notified.
pub async fn lock_user_account(forge: &Forgejo, username: &str) -> anyhow::Result<()> {
async fn lock_user_account(forge: &Forgejo, username: &str) -> anyhow::Result<()> {
let opts = forgejo_api::structs::EditUserOption {
// boilerplate: we do not change these settings
active: None,