mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Add more test for login links and fix a bug on action retrieve (#2361)
* add more test for login links and fix a bug on action retrieve
This commit is contained in:
		@@ -736,7 +736,7 @@ func GetFeeds(opts GetFeedsOptions) ([]*Action, error) {
 | 
			
		||||
	var userIDCond builder.Cond = builder.Eq{"user_id": opts.RequestedUser.ID}
 | 
			
		||||
	if opts.Collaborate {
 | 
			
		||||
		userIDCond = userIDCond.Or(builder.Expr(
 | 
			
		||||
			`repo_id IN (SELECT repo_id FROM "access" WHERE access.user_id = ?)`,
 | 
			
		||||
			"repo_id IN (SELECT repo_id FROM `access` WHERE access.user_id = ?)",
 | 
			
		||||
			opts.RequestedUser.ID))
 | 
			
		||||
	}
 | 
			
		||||
	cond = cond.And(userIDCond)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user