We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2e7d54 commit d9e237eCopy full SHA for d9e237e
models/action.go
@@ -317,7 +317,7 @@ func GetFeeds(opts GetFeedsOptions) ([]*Action, error) {
317
318
actions := make([]*Action, 0, setting.UI.FeedPagingNum)
319
320
- if err := db.DefaultContext().Engine().Limit(setting.UI.FeedPagingNum).Desc("id").Where(cond).Find(&actions); err != nil {
+ if err := db.DefaultContext().Engine().Limit(setting.UI.FeedPagingNum).Desc("created_unix").Where(cond).Find(&actions); err != nil {
321
return nil, fmt.Errorf("Find: %v", err)
322
}
323
0 commit comments