mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-02-09 23:50:10 +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) {
|
func handlerRecentChanges(w http.ResponseWriter, rq *http.Request) {
|
||||||
// Error ignored: filtered by regex
|
// Error ignored: filtered by regex
|
||||||
n, _ := strconv.Atoi(mux.Vars(rq)["count"])
|
n, _ := strconv.Atoi(mux.Vars(rq)["count"])
|
||||||
|
if n > 100 {
|
||||||
|
return
|
||||||
|
}
|
||||||
var lc = l18n.FromRequest(rq)
|
var lc = l18n.FromRequest(rq)
|
||||||
util.HTTP200Page(w, views.BaseHTML(
|
util.HTTP200Page(w, views.BaseHTML(
|
||||||
lc.GetPlural("ui.recent_title", n),
|
lc.GetPlural("ui.recent_title", n),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user