From ab2acda9490477294cf0c6c679b5fa4edd9710cd Mon Sep 17 00:00:00 2001 From: minoplhy Date: Sun, 22 Dec 2024 10:37:23 +0700 Subject: [PATCH] build-gitea: fix 1.22.6 patch --- gitea-patches/gitea-v1.22.6-no-contributors-stats.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gitea-patches/gitea-v1.22.6-no-contributors-stats.patch b/gitea-patches/gitea-v1.22.6-no-contributors-stats.patch index 084cb47..2bac605 100644 --- a/gitea-patches/gitea-v1.22.6-no-contributors-stats.patch +++ b/gitea-patches/gitea-v1.22.6-no-contributors-stats.patch @@ -1,8 +1,8 @@ diff --git a/routers/web/web.go b/routers/web/web.go -index aa37d4dc10..de79b00b07 100644 +index bd2da620e2..733f84cd3f 100644 --- a/routers/web/web.go +++ b/routers/web/web.go -@@ -1456,18 +1456,6 @@ func registerRoutes(m *web.Router) { +@@ -1436,18 +1436,6 @@ func registerRoutes(m *web.Route) { m.Group("/{username}/{reponame}/activity", func() { m.Get("", repo.Activity) m.Get("/{period}", repo.Activity) @@ -19,5 +19,5 @@ index aa37d4dc10..de79b00b07 100644 - m.Get("/data", repo.RecentCommitsData) - }) }, - optSignIn, context.RepoAssignment, context.RequireRepoReaderOr(unit.TypePullRequests, unit.TypeIssues, unit.TypeReleases), + ignSignIn, context.RepoAssignment, context.RequireRepoReaderOr(unit.TypePullRequests, unit.TypeIssues, unit.TypeReleases), context.RepoRef(), repo.MustBeNotEmpty,