forgejo/routers
wxiaoguang 459ee98136
Only use supported sort order for "explore/users" page (#29430)
Thanks to inferenceus : some sort orders on the "explore/users" page
could list users by their lastlogintime/updatetime.

It leaks user's activity unintentionally. This PR makes that page only
use "supported" sort orders.

Removing the "sort orders" could also be a good solution, while IMO at
the moment keeping the "create time" and "name" orders is also fine, in
case some users would like to find a target user in the search result,
the "sort order" might help.

![image](https://github.com/go-gitea/gitea/assets/2114189/ce5c39c1-1e86-484a-80c3-33cac6419af8)

(cherry picked from commit eedb8f41297c343d6073a7bab46e4df6ee297a90)
2024-03-06 12:10:43 +08:00
..
api Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
common Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
install Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
private Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
utils Improve user search display name (#29002) 2024-02-01 17:10:16 +00:00
web Only use supported sort order for "explore/users" page (#29430) 2024-03-06 12:10:43 +08:00
init.go [API] Forgejo API /api/forgejo/v1 2024-02-05 14:44:32 +01:00