diff options
-rw-r--r-- | pkg/app/popular/utils.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/app/popular/utils.go b/pkg/app/popular/utils.go index 574e60b..d1adfe2 100644 --- a/pkg/app/popular/utils.go +++ b/pkg/app/popular/utils.go @@ -25,6 +25,7 @@ func GetPopularThreads(n int, date string) ([]*models.Message, error) { var recentMessages []*models.Message err := database.DBCon.Model(&recentMessages). + Where(`starts_thread = TRUE`). Where("not date is null"). OrderExpr("date DESC"). Limit(n). |