Able to get feed full content

This commit is contained in:
2025-04-06 13:21:27 +08:00
parent 0c28766336
commit c812359f8b
3 changed files with 45 additions and 0 deletions

View File

@ -10,6 +10,7 @@ func GetTodayFeedRandomly(limit int) ([]models.SubscriptionItem, error) {
if err := database.C.Limit(limit).
Where("DATE(created_at) = CURRENT_DATE"). // Created in today
Order("RANDOM()").
Omit("Content").
Find(&articles).Error; err != nil {
return articles, err
}