[#200] optimize after commit issue callback
This commit is contained in:
parent
d692b6d450
commit
bb8d66b6be
|
@ -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
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue