提交 4d7ead9b 编写于 作者: S Sean McGivern

Merge branch '29316-can-t-select-a-mirror-user' into 'master'

Resolve "Can't select a mirror user"

See merge request !9854
......@@ -18,8 +18,7 @@ class AutocompleteController < ApplicationController
if params[:search].blank?
# Include current user if available to filter by "Me"
if params[:current_user].present? && current_user
@users = @users.where.not(id: current_user.id)
@users = [current_user, *@users]
@users = [current_user, *@users].uniq
end
if params[:author_id].present?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册