DG MS; fixed infinate loop

This commit is contained in:
danielvincent 2010-06-17 20:06:44 -07:00
parent 39118293eb
commit 1ce01be534

View file

@ -8,9 +8,11 @@ module Diaspora
@@queue = MessageHandler.new
def notify_friends
xml = Post.build_xml_for(self)
@@queue.add_post_request( friends_with_permissions, xml )
@@queue.process
if self.owner == User.first.email
xml = Post.build_xml_for(self)
@@queue.add_post_request( friends_with_permissions, xml )
@@queue.process
end
end
def prep_webhook