mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-09 15:18:11 -05:00
Use typeahead on conversations
This commit is contained in:
@@ -17,7 +17,8 @@ class ContactsController < ApplicationController
|
||||
# Used for mentions in the publisher and pagination on the contacts page
|
||||
format.json {
|
||||
@people = if params[:q].present?
|
||||
Person.search(params[:q], current_user, only_contacts: true).limit(15)
|
||||
mutual = params[:mutual].present? && params[:mutual]
|
||||
Person.search(params[:q], current_user, only_contacts: true, mutual: mutual).limit(15)
|
||||
else
|
||||
set_up_contacts_json
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user