Hack to get comments working for now

This commit is contained in:
Raphael 2010-08-16 12:56:02 -07:00
parent e2d5bf909f
commit 598c646b07
2 changed files with 15 additions and 15 deletions

View file

@ -77,22 +77,21 @@ class Person
def send_comment( c )
if self.owner.nil?
if c.post.person.owner.nil?
#puts "The commenter is not here, and neither is the poster"
elsif c.post.person.owner
#puts "The commenter is not here, and the poster is"
c.push_downstream
end
else
if owns? c.post
#puts "The commenter is here, and is the poster"
c.push_downstream
else
#puts "The commenter is here, and is not the poster"
c.push_upstream
end
if c.post.person.owner.nil?
#puts "The commenter is not here, and neither is the poster"
elsif c.post.person.owner
#puts "The commenter is not here, and the poster is"
c.push_downstream
end
else
if owns? c.post
#puts "The commenter is here, and is the poster"
c.push_downstream
else
#puts "The commenter is here, and is not the poster"
c.push_upstream
end
end
end
##profile
def update_profile(params)

View file

@ -174,6 +174,7 @@ class User
Rails.logger.debug("Saving object: #{object}")
object.save
object.socket_to_uid( id) if object.respond_to? :socket_to_uid
object.person.send_comment object if object.is_a? Comment
end
end