From bb8d66b6bedf18ab4869f05db44363adcb2ac779 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Wed, 10 Jul 2013 01:57:49 +0600 Subject: [PATCH] [#200] optimize after commit issue callback --- lib/modules/observers/activity_feed/issue.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/observers/activity_feed/issue.rb b/lib/modules/observers/activity_feed/issue.rb index 8d29cf512..14bdbeb7a 100644 --- a/lib/modules/observers/activity_feed/issue.rb +++ b/lib/modules/observers/activity_feed/issue.rb @@ -58,11 +58,11 @@ module Modules::Observers::ActivityFeed::Issue ) end # dont remove outdated issues link - Comment.create_link_on_issues_from_item(self) + Comment.create_link_on_issues_from_item(self) if title_changed? || body_changed? end def send_hooks(action = :create) project.hooks.each{ |h| h.receive_issues(self, action) } end -end \ No newline at end of file +end