♻️ 一切尽在帖子表 #4

Merged
LittleSheep merged 7 commits from refactor/everything-in-post into master 2024-07-22 05:46:47 +00:00
Showing only changes of commit 96b36c1db4 - Show all commits

View File

@ -123,7 +123,7 @@ func ListPost(tx *gorm.DB, take int, offset int, noReact ...bool) ([]*models.Pos
var items []*models.Post var items []*models.Post
if err := tx. if err := tx.
Limit(take).Offset(offset). Limit(take).Offset(offset).
Order("created_at DESC"). Order("published_at DESC").
Preload("Tags"). Preload("Tags").
Preload("Categories"). Preload("Categories").
Preload("Realm"). Preload("Realm").