aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorZettat123 <zettat123@gmail.com>2024-11-15 12:36:22 +0800
committerGitHub <noreply@github.com>2024-11-15 04:36:22 +0000
commita0c0cb3a2c426e39b91e7301c94ddc3a988c8607 (patch)
tree0ce14dbb920cf3cddf9fe3887feecdfdd843e8c4 /modules/setting
parente1b269e956e955dd1dfb012f40270d73f8329092 (diff)
downloadgitea-a0c0cb3a2c426e39b91e7301c94ddc3a988c8607.tar.gz
gitea-a0c0cb3a2c426e39b91e7301c94ddc3a988c8607.zip
Fix `recentupdate` sorting bugs (#32505)
Fix #32499 - Add the missing `recentupdate` to `OrderByFlatMap` - Assign default value(`recentupdate`) to `EXPLORE_PAGING_DEFAULT_SORT`
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/ui.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/setting/ui.go b/modules/setting/ui.go
index a8dc11d097..db0fe9ef79 100644
--- a/modules/setting/ui.go
+++ b/modules/setting/ui.go
@@ -86,6 +86,7 @@ var UI = struct {
Reactions: []string{`+1`, `-1`, `laugh`, `hooray`, `confused`, `heart`, `rocket`, `eyes`},
CustomEmojis: []string{`git`, `gitea`, `codeberg`, `gitlab`, `github`, `gogs`},
CustomEmojisMap: map[string]string{"git": ":git:", "gitea": ":gitea:", "codeberg": ":codeberg:", "gitlab": ":gitlab:", "github": ":github:", "gogs": ":gogs:"},
+ ExploreDefaultSort: "recentupdate",
PreferredTimestampTense: "mixed",
AmbiguousUnicodeDetection: true,