diff options
author | Lauris BH <lauris@nix.lv> | 2022-06-15 18:05:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 23:05:32 +0800 |
commit | 1f8f9c3826643b8c3a0c3da1dc15090af736f5a6 (patch) | |
tree | 80e4dec4b1ac01f9bd41d27ae042ece6a14b0f1e /routers | |
parent | 9f87b60b46b2d3c6c4518d772a0fdc935d454ae0 (diff) | |
download | gitea-1f8f9c3826643b8c3a0c3da1dc15090af736f5a6.tar.gz gitea-1f8f9c3826643b8c3a0c3da1dc15090af736f5a6.zip |
Remove tab/TabName usage where it's not needed (#19973)
`tab` query argument and `TabName` in context is used only in profile so remove it from all other places where it's not used anymore.
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/user/profile.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go index 44501fc245..dd5804cd42 100644 --- a/routers/web/user/profile.go +++ b/routers/web/user/profile.go @@ -276,6 +276,7 @@ func Profile(ctx *context.Context) { pager := context.NewPagination(total, setting.UI.User.RepoPagingNum, page, 5) pager.SetDefaultParams(ctx) + pager.AddParam(ctx, "tab", "TabName") if tab != "followers" && tab != "following" && tab != "activity" && tab != "projects" { pager.AddParam(ctx, "language", "Language") } |