mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: Search wasn't using the lowercase username for finding the context.
This commit is contained in:
parent
ad6705cca7
commit
3b7d3aa487
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class SearchController < ApplicationController
|
|||
# A user is found by username
|
||||
context_obj = nil
|
||||
if search_context[:type] == 'user'
|
||||
context_obj = klass.where(username: params[:search_context][:id]).first
|
||||
context_obj = klass.where(username_lower: params[:search_context][:id].downcase).first
|
||||
else
|
||||
context_obj = klass.where(id: params[:search_context][:id]).first
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue