Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-10-19 18:24:22 +0400
committerCiro Santilli <ciro.santilli@gmail.com>2014-10-20 00:19:56 +0400
commitf808ecf11e5e5664b9617112691efece5ed01980 (patch)
tree1ad1efb2e678bc9fb4024aa8523b1746197f0e62 /app/services/notification_service.rb
parent3880bb61760ef1f69b0df49148202ff6b4208f01 (diff)
DRY mentioned in magic note constant
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r--app/services/notification_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb
index fe39f83b400..36781314278 100644
--- a/app/services/notification_service.rb
+++ b/app/services/notification_service.rb
@@ -119,7 +119,7 @@ class NotificationService
# ignore gitlab service messages
return true if note.note =~ /\A_Status changed to closed_/
- return true if note.note =~ /\A_mentioned in / && note.system == true
+ return true if note.cross_reference? && note.system == true
opts = { noteable_type: note.noteable_type, project_id: note.project_id }