aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/activity.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/repo/activity.go')
-rw-r--r--routers/web/repo/activity.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/repo/activity.go b/routers/web/repo/activity.go
index 6f6641cc65..c8fa60f77a 100644
--- a/routers/web/repo/activity.go
+++ b/routers/web/repo/activity.go
@@ -24,7 +24,7 @@ func Activity(ctx *context.Context) {
ctx.Data["PageIsPulse"] = true
- ctx.Data["Period"] = ctx.Params("period")
+ ctx.Data["Period"] = ctx.PathParam("period")
timeUntil := time.Now()
var timeFrom time.Time
@@ -75,7 +75,7 @@ func ActivityAuthors(ctx *context.Context) {
timeUntil := time.Now()
var timeFrom time.Time
- switch ctx.Params("period") {
+ switch ctx.PathParam("period") {
case "daily":
timeFrom = timeUntil.Add(-time.Hour * 24)
case "halfweekly":