mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 07:02:46 +08:00
Fix the build.
This commit is contained in:
parent
3a62eba299
commit
fa95699fde
|
@ -160,7 +160,7 @@ class User < ActiveRecord::Base
|
|||
scope :activated, -> { where(active: true) }
|
||||
|
||||
scope :filter_by_username, ->(filter) do
|
||||
where('username_lower ILIKE ?', filter)
|
||||
where('username_lower ILIKE ?', "%#{filter}%")
|
||||
end
|
||||
|
||||
scope :filter_by_username_or_email, ->(filter) do
|
||||
|
|
Loading…
Reference in New Issue
Block a user