diff options
Diffstat (limited to 'routers/user/profile.go')
-rw-r--r-- | routers/user/profile.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/routers/user/profile.go b/routers/user/profile.go index 50d0c2397f..b0eab09333 100644 --- a/routers/user/profile.go +++ b/routers/user/profile.go @@ -126,12 +126,7 @@ func Profile(ctx *context.Context) { orderBy = models.SearchOrderByAlphabetically default: ctx.Data["SortType"] = "recentupdate" - orderBy = models.SearchOrderByNewest - } - - // set default sort value if sort is empty. - if ctx.Query("sort") == "" { - ctx.Data["SortType"] = "recentupdate" + orderBy = models.SearchOrderByRecentUpdated } keyword := strings.Trim(ctx.Query("q"), " ") |