From f4be4e733c0d7f000d30bfe27ba809c0069d790a Mon Sep 17 00:00:00 2001 From: Gusted Date: Mon, 21 Oct 2024 00:03:50 +0200 Subject: [PATCH] fix: Specify default value for `EXPLORE_DEFAULT_SORT`. - This is another regression from 5a0bc357992dad725b0163105f8b6464ec130a21, where the default value was changed to "alphabetically" because it relied on `ExploreDefaultSort` providing a fallback value. - Set the default value for `EXPLORE_DEFAULT_SORT` to `recentupdate`, this was already the behavior explicitly for existing users of this setting but with 5a0bc357992dad725b0163105f8b6464ec130a21 it didn't provide a explicit fallback to `recentupdate`. So opting for a 'easy' fix, that doesn't add boilerplate code to those instances. --- modules/setting/ui.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/setting/ui.go b/modules/setting/ui.go index 056d670ba6..40f1812839 100644 --- a/modules/setting/ui.go +++ b/modules/setting/ui.go @@ -88,6 +88,7 @@ var UI = struct { Reactions: []string{`+1`, `-1`, `laugh`, `hooray`, `confused`, `heart`, `rocket`, `eyes`}, CustomEmojis: []string{`git`, `gitea`, `codeberg`, `gitlab`, `github`, `gogs`, `forgejo`}, CustomEmojisMap: map[string]string{"git": ":git:", "gitea": ":gitea:", "codeberg": ":codeberg:", "gitlab": ":gitlab:", "github": ":github:", "gogs": ":gogs:", "forgejo": ":forgejo:"}, + ExploreDefaultSort: "recentupdate", PreferredTimestampTense: "mixed", AmbiguousUnicodeDetection: true,