mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Make dashboard newsfeed list length a configurable item (#12469)
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
This commit is contained in:
		@@ -339,9 +339,9 @@ func GetFeeds(opts GetFeedsOptions) ([]*Action, error) {
 | 
			
		||||
		cond = cond.And(builder.Eq{"is_deleted": false})
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	actions := make([]*Action, 0, 20)
 | 
			
		||||
	actions := make([]*Action, 0, setting.UI.FeedPagingNum)
 | 
			
		||||
 | 
			
		||||
	if err := x.Limit(20).Desc("id").Where(cond).Find(&actions); err != nil {
 | 
			
		||||
	if err := x.Limit(setting.UI.FeedPagingNum).Desc("id").Where(cond).Find(&actions); err != nil {
 | 
			
		||||
		return nil, fmt.Errorf("Find: %v", err)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user