Fix account and tag searches with leading/trailing spaces (#5965)
* Strip leading & trailing spaces from account query * Strip leading & trailing spaces from tag search
This commit is contained in:
		
				
					committed by
					
						
						Eugen Rochko
					
				
			
			
				
	
			
			
			
						parent
						
							98aa96b8d6
						
					
				
				
					commit
					6a82939adb
				
			@@ -4,7 +4,7 @@ class AccountSearchService < BaseService
 | 
			
		||||
  attr_reader :query, :limit, :options, :account
 | 
			
		||||
 | 
			
		||||
  def call(query, limit, account = nil, options = {})
 | 
			
		||||
    @query   = query
 | 
			
		||||
    @query   = query.strip
 | 
			
		||||
    @limit   = limit
 | 
			
		||||
    @options = options
 | 
			
		||||
    @account = account
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user