Skip to content

Commit

Permalink
Direct follow-up to #578 (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Ľach authored and elegaanz committed May 29, 2019
1 parent 8c59c82 commit 037674a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routes/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ pub fn toggle_block(
) -> Result<Flash<Redirect>, ErrorPage> {
let inst = Instance::get(&*conn, id)?;
let message = if inst.blocked {
i18n!(intl.catalog, "{} have been unblocked."; &inst.name)
i18n!(intl.catalog, "{} has been unblocked."; &inst.name)
} else {
i18n!(intl.catalog, "{} have been blocked."; &inst.name)
i18n!(intl.catalog, "{} has been blocked."; &inst.name)
};

inst.toggle_block(&*conn)?;
Expand Down Expand Up @@ -218,7 +218,7 @@ pub fn ban(_admin: Admin, id: i32, rockets: PlumeRocket) -> Result<Flash<Redirec

Ok(Flash::success(
Redirect::to(uri!(admin_users: page = _)),
i18n!(rockets.intl.catalog, "{} have been banned."; u.name()),
i18n!(rockets.intl.catalog, "{} has been banned."; u.name()),
))
}

Expand Down

0 comments on commit 037674a

Please sign in to comment.