diff --git a/app/models/comment.rb b/app/models/comment.rb index 0323b0d6a..3b574f28f 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -22,10 +22,12 @@ class Comment validates_presence_of :text def push_upstream + Rails.logger.info("GOIN UPSTREAM") push_to([post.person]) end def push_downstream + Rails.logger.info("SWIMMIN DOWNSTREAM") push_to(post.people_with_permissions) end diff --git a/app/models/person.rb b/app/models/person.rb index fd601076f..01947bcd6 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -78,17 +78,17 @@ class Person def send_comment( c ) if self.remote? if c.post.person.owner.nil? - #puts "The commenter is not here, and neither is the poster" + Rails.logger.info "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" + Rails.logger.info "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" + Rails.logger.info "The commenter is here, and is the poster" c.push_downstream else - #puts "The commenter is here, and is not the poster" + Rails.logger.info "The commenter is here, and is not the poster" c.push_upstream end end