aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo/activity.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/activity.go')
-rw-r--r--routers/repo/activity.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/routers/repo/activity.go b/routers/repo/activity.go
index 88c704b8cc..dcb7bf57cd 100644
--- a/routers/repo/activity.go
+++ b/routers/repo/activity.go
@@ -5,6 +5,7 @@
package repo
import (
+ "net/http"
"time"
"code.gitea.io/gitea/models"
@@ -64,7 +65,7 @@ func Activity(ctx *context.Context) {
return
}
- ctx.HTML(200, tplActivity)
+ ctx.HTML(http.StatusOK, tplActivity)
}
// ActivityAuthors renders JSON with top commit authors for given time period over all branches
@@ -98,5 +99,5 @@ func ActivityAuthors(ctx *context.Context) {
return
}
- ctx.JSON(200, authors)
+ ctx.JSON(http.StatusOK, authors)
}