diff --git a/routers/web/repo/commit.go b/routers/web/repo/commit.go index 51e10ffc47e..cfe98bd4914 100644 --- a/routers/web/repo/commit.go +++ b/routers/web/repo/commit.go @@ -305,7 +305,7 @@ func Diff(ctx *context.Context) { if ctx.IsSigned { err = activities_model.SetCommitReadBy(ctx, ctx.Repo.Repository.ID, ctx.Doer.ID, commitID) if err != nil { - ctx.ServerError("SetReleaseReadBy", err) + ctx.ServerError("SetCommitReadBy", err) return } }