1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

nix wording nit in todo code comment

(cherry picked from commit c0db47bf9b6eb59d822ad21b7dd8b1d6acd8ad8e)
This commit is contained in:
6543 2024-09-01 20:25:02 +02:00 committed by Gergely Nagy
parent 5a0bc35799
commit 4098098f00
No known key found for this signature in database

View file

@ -114,7 +114,7 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileDb
sortOrder := ctx.FormString("sort") sortOrder := ctx.FormString("sort")
if _, ok := repo_model.OrderByFlatMap[sortOrder]; !ok { if _, ok := repo_model.OrderByFlatMap[sortOrder]; !ok {
sortOrder = setting.UI.ExploreDefaultSort // TODO: add new default sort order for org home? sortOrder = setting.UI.ExploreDefaultSort // TODO: add new default sort order for user home?
} }
ctx.Data["SortType"] = sortOrder ctx.Data["SortType"] = sortOrder
orderBy = repo_model.OrderByFlatMap[sortOrder] orderBy = repo_model.OrderByFlatMap[sortOrder]