From 4b5071ec05173170650da1f59eff46f7e2b76675 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 11 Aug 2010 16:12:55 -0700 Subject: [PATCH] DG, RS; socketing back in for your own posts --- app/models/person.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/person.rb b/app/models/person.rb index 75e261496..c903e2db4 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -58,6 +58,7 @@ class Person model_class = class_name.to_s.camelize.constantize post = model_class.instantiate(options) post.notify_people + post.socket_to_uid person.owner.id if person.owner_id post end @@ -67,6 +68,7 @@ class Person c = Comment.new(:person_id => self.id, :text => text, :post => options[:on]) if c.save send_comment c + c.socket_to_uid person.owner.id if person.owner_id true else Rails.logger.warn "this failed to save: #{c.inspect}"