mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	@@ -446,8 +446,11 @@ func GetFeeds(ctx context.Context, opts GetFeedsOptions) (ActionList, int64, err
 | 
				
			|||||||
		return nil, 0, err
 | 
							return nil, 0, err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	sess := db.GetEngine(ctx).Where(cond).
 | 
						sess := db.GetEngine(ctx).Where(cond)
 | 
				
			||||||
		Select("`action`.*"). // this line will avoid select other joined table's columns
 | 
						if setting.Database.Type.IsMySQL() {
 | 
				
			||||||
 | 
							sess = sess.IndexHint("USE", "JOIN", "IDX_action_c_u_d")
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						sess = sess.Select("`action`.*"). // this line will avoid select other joined table's columns
 | 
				
			||||||
						Join("INNER", "repository", "`repository`.id = `action`.repo_id")
 | 
											Join("INNER", "repository", "`repository`.id = `action`.repo_id")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	opts.SetDefaultValues()
 | 
						opts.SetDefaultValues()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user