The errors other packages give a page (store, catalog, mirror) are shown in its language; a percentage is written as the language writes it (%93 in Turkish); the footer's time in its date form; and a stale form is refused with a sentence rather than "bad request". Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
3a4488b41e
commit
f8d18efaef
36 files changed
+203
-46
No files matched your search
@@ -401,7 +401,7 @@ func (p *AccountPages) mirrorAction(m MirrorAdmin,
|
||||
return p.adminOnly(func(w http.ResponseWriter, r *http.Request, admin store.User) {
|
||||
sess, _, _ := p.session(r)
|
||||
if !p.accounts.CheckCSRF(sess, r.FormValue("csrf")) {
|
||||
http.Error(w, "bad request", http.StatusBadRequest)
|
||||
badForm(w, r)
|
||||
return
|
||||
}
|
||||
msg, err := do(r.Context(), admin, r)
|
||||
|
||||
Reference in new issue
Block a user