mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 06:12:25 -05:00 
			
		
		
		
	[bugfix] Fix infinite domain block database loop (#467)
This fixes an issue where the domain block logic would go into an infinite loop.
This commit is contained in:
		
					parent
					
						
							
								c365863ea9
							
						
					
				
			
			
				commit
				
					
						1e3b38573d
					
				
			
		
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -123,5 +123,10 @@ func (i *instanceDB) GetInstanceAccounts(ctx context.Context, domain string, max | ||||||
| 	if err := q.Scan(ctx); err != nil { | 	if err := q.Scan(ctx); err != nil { | ||||||
| 		return nil, i.conn.ProcessError(err) | 		return nil, i.conn.ProcessError(err) | ||||||
| 	} | 	} | ||||||
|  | 
 | ||||||
|  | 	if len(accounts) == 0 { | ||||||
|  | 		return nil, db.ErrNoEntries | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
| 	return accounts, nil | 	return accounts, nil | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue