diff options
author | ache <ache@ache.one> | 2024-02-14 12:36:40 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2024-02-14 12:36:40 +0100 |
commit | 372c910927ef3237e15fff2fc726040faa17e060 (patch) | |
tree | 5095e5ef5444b560f0fafdbcd796d173b41cc6e1 | |
parent | Support for others locales (diff) |
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index d400e6e..657c512 100644 --- a/src/main.rs +++ b/src/main.rs @@ -206,7 +206,7 @@ fn do_like(tr: &Transaction, ip : SocketAddr, path : String) -> Response<Body> { if dtime < limite { let time_remaining = limite - dtime; - return respond(StatusCode::TOO_MANY_REQUESTS, format!("{} {}s {}", time_remaining, t!("wait_prefix"), t!("wait_message_suffix"))); + return respond(StatusCode::TOO_MANY_REQUESTS, format!("{} {}s {}", t!("wait_prefix"), time_remaining, t!("wait_message_suffix"))); } let res = tr.execute("UPDATE likes SET number = number + 1, lastMod = unixepoch() WHERE ip_hash = ? and path = ?", [hash_ip.as_str(), path.as_str()]); |