forgejo/modules
Kemal Zebari 50917ead5f
Perform Newest sort type correctly when sorting issues (#30644)
Should resolve #30642.

Before this commit, we were treating an empty `?sort=` query parameter
as the correct sorting type (which is to sort issues in descending order
by their created UNIX time). But when we perform `sort=latest`, we did
not include this as a type so we would sort by the most recently updated
when reaching the `default` switch statement block.

This commit fixes this by considering the empty string, "latest", and
just any other string that is not mentioned in the switch statement as
sorting by newest.

(cherry picked from commit 9b7af4340c36d3e1888788499d16f83feeb1601b)
2024-04-28 15:39:00 +02:00
..
actions
activitypub
analyze
assetfs
auth Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
avatar
base
cache
charset s/Gitea/Forgejo in various log messages and comments 2024-04-21 21:26:15 +05:00
container Add container.FilterSlice function (gitea#30339) 2024-04-16 11:49:44 +02:00
csv
emoji
eventsource
generate
git Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
gitgraph models/asymkey: Implement Tag verification 2024-03-30 16:22:05 +01:00
gitrepo
graceful [FIX] make pprof labels conformant with prometheus spec 2024-03-31 17:07:14 +02:00
hcaptcha
highlight Fix 2024-03-30 15:23:48 +01:00
hostmatcher
html
httpcache
httplib [PORT] drop utils.IsExternalURL (and expand IsRiskyRedirectURL tests) (#3167) 2024-04-15 13:03:08 +00:00
indexer Perform Newest sort type correctly when sorting issues (#30644) 2024-04-28 15:39:00 +02:00
issue/template
json
label
lfs fix: close file in the Upload func (#30262) 2024-04-07 15:40:31 +02:00
log Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
markup Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
mcaptcha
metrics
migration
nosql s/Gitea/Forgejo in various log messages and comments 2024-04-21 21:26:15 +05:00
optional Add interface{} to any replacement to make fmt, exclude *.pb.go (#30461) 2024-04-15 20:01:36 +02:00
options
packages Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
paginator
pprof
private
process Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
proxy
proxyprotocol
public
queue
recaptcha
references
regexplru
repository Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
secret
session Avoid importing modules/web/middleware in modules/session (#30584) 2024-04-21 16:28:16 +02:00
setting Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
sitemap
ssh
storage
structs [FEAT]Add Option to hide Release Archive links (#3139) 2024-04-24 15:15:55 +00:00
svg
sync
system
templates Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
test
testlogger Merge pull request '[FEAT] Mark database errors in tests as failure' (#2972) from gusted/forgejo-log-db into forgejo 2024-04-02 14:47:32 +00:00
timeutil
translation Rename ByteSize to ReadableSize 2024-03-31 20:17:12 +05:00
turnstile
typesniffer
updatechecker
uri
user
util Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
validation
web Avoid importing modules/web/middleware in modules/session (#30584) 2024-04-21 16:28:16 +02:00
webhook [FEAT] sourcehut webhooks 2024-04-05 10:20:40 +02:00