mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-10-30 11:46:16 +00:00
Recent changes: Return the 100 cap
This commit is contained in:
parent
51f5ebf46d
commit
471805e6b4
@ -52,6 +52,9 @@ func handlerHistory(w http.ResponseWriter, rq *http.Request) {
|
||||
func handlerRecentChanges(w http.ResponseWriter, rq *http.Request) {
|
||||
// Error ignored: filtered by regex
|
||||
n, _ := strconv.Atoi(mux.Vars(rq)["count"])
|
||||
if n > 100 {
|
||||
return
|
||||
}
|
||||
var lc = l18n.FromRequest(rq)
|
||||
util.HTTP200Page(w, views.BaseHTML(
|
||||
lc.GetPlural("ui.recent_title", n),
|
||||
|
Loading…
Reference in New Issue
Block a user