[#200] optimize after commit issue callback

This commit is contained in:
Alexander Machehin 2013-07-10 01:57:49 +06:00
parent d692b6d450
commit bb8d66b6be
1 changed files with 2 additions and 2 deletions

View File

@ -58,11 +58,11 @@ module Modules::Observers::ActivityFeed::Issue
) )
end end
# dont remove outdated issues link # 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 end
def send_hooks(action = :create) def send_hooks(action = :create)
project.hooks.each{ |h| h.receive_issues(self, action) } project.hooks.each{ |h| h.receive_issues(self, action) }
end end
end end