diff options
author | delvh <leon@kske.dev> | 2023-02-04 14:26:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-04 21:26:38 +0800 |
commit | 4d20a4a1baeb9ed1bb5b3ed7c44b6046f6387303 (patch) | |
tree | 739c75ed66f8ba185af6f5657a1444c65eb64ab5 /modules | |
parent | ea13b23349ef98249deeb9469f6b1444de42abf5 (diff) | |
download | gitea-4d20a4a1baeb9ed1bb5b3ed7c44b6046f6387303.tar.gz gitea-4d20a4a1baeb9ed1bb5b3ed7c44b6046f6387303.zip |
Remove ONLY_SHOW_RELEVANT_REPOS setting (#21962)
Every user can already disable the filter manually, so the explicit
setting is absolutely useless and only complicates the logic.
Previously, there was also unexpected behavior when multiple query
parameters were present.
---------
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/setting.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index afd7a40150..23cd90553e 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -241,7 +241,6 @@ var ( CustomEmojisMap map[string]string `ini:"-"` SearchRepoDescription bool UseServiceWorker bool - OnlyShowRelevantRepos bool Notification struct { MinTimeout time.Duration @@ -1123,7 +1122,6 @@ func loadFromConf(allowEmpty bool, extraConfig string) { UI.DefaultShowFullName = Cfg.Section("ui").Key("DEFAULT_SHOW_FULL_NAME").MustBool(false) UI.SearchRepoDescription = Cfg.Section("ui").Key("SEARCH_REPO_DESCRIPTION").MustBool(true) UI.UseServiceWorker = Cfg.Section("ui").Key("USE_SERVICE_WORKER").MustBool(false) - UI.OnlyShowRelevantRepos = Cfg.Section("ui").Key("ONLY_SHOW_RELEVANT_REPOS").MustBool(false) HasRobotsTxt, err = util.IsFile(path.Join(CustomPath, "robots.txt")) if err != nil { |