making profiles socket

This commit is contained in:
Daniel Vincent Grippi 2010-09-14 19:07:23 -07:00
parent 3de13d0c19
commit 02e1ed82a3
2 changed files with 3 additions and 0 deletions

View file

@ -23,6 +23,7 @@ class Person
include MongoMapper::Document
include ROXML
include Encryptor::Public
include Diaspora::Socketable
xml_accessor :_id
xml_accessor :email

View file

@ -263,6 +263,8 @@ class User
person = Diaspora::Parser.owner_id_from_xml xml
person.profile = object
person.save
object.socket_to_uid(id, :aspect_ids => aspect_ids) if object.respond_to?(:socket_to_uid)
elsif object.is_a?(Comment)
object.person = Diaspora::Parser.parse_or_find_person_from_xml( xml ).save if object.person.nil?