1
0
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:
Timur Ismagilov 2021-12-31 02:10:00 +05:00
parent 51f5ebf46d
commit 471805e6b4

View File

@ -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),