mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
Hack to get comments working for now
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user