DG, RS; socketing back in for your own posts

This commit is contained in:
Raphael 2010-08-11 16:12:55 -07:00
parent 2d14f64745
commit 4b5071ec05

View file

@ -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}"