From 1ce01be534b82c03cce2bd398c4b5f8322bc399f Mon Sep 17 00:00:00 2001 From: danielvincent Date: Thu, 17 Jun 2010 20:06:44 -0700 Subject: [PATCH] DG MS; fixed infinate loop --- lib/common.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/common.rb b/lib/common.rb index 4a64c570c..38d8c416f 100644 --- a/lib/common.rb +++ b/lib/common.rb @@ -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