From 8a2dd36b7ecf059ba10eb447896cc4f1e3f0426b Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Fri, 25 Mar 2011 17:27:44 -0700 Subject: [PATCH] Fix autocomplete JSON --- app/models/person.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/person.rb b/app/models/person.rb index 3614f5e2f..982f579da 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -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