Fix autocomplete JSON
This commit is contained in:
parent
aed190dc6d
commit
8a2dd36b7e
1 changed files with 5 additions and 1 deletions
|
|
@ -197,7 +197,11 @@ class Person < ActiveRecord::Base
|
|||
:profile => self.profile.as_json(opts)
|
||||
}
|
||||
else
|
||||
super(:include => [:profile], :except => [:mongo_id, :owner_id, :serialized_public_key])
|
||||
{:id => self.guid,
|
||||
:name => self.name,
|
||||
:avatar => self.profile.image_url(:thumb_small),
|
||||
:handle => self.diaspora_handle,
|
||||
:url => "/people/#{self.id}"}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue