Add plain text mentions
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
class Notifier::Assigned < Notifier
|
||||
private
|
||||
def recipients
|
||||
event.assignees.excluding(card.collection.access_only_users)
|
||||
end
|
||||
end
|
||||
@@ -1,2 +0,0 @@
|
||||
class Notifier::Closed < Notifier
|
||||
end
|
||||
@@ -1,6 +0,0 @@
|
||||
class Notifier::Commented < Notifier
|
||||
private
|
||||
def resource
|
||||
event.comment
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
class Notifier::Events::Assigned < Notifier::Events::Base
|
||||
private
|
||||
def recipients
|
||||
source.assignees.excluding(card.collection.access_only_users)
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,12 @@
|
||||
class Notifier::Events::Base < Notifier
|
||||
delegate :card, to: :source
|
||||
|
||||
private
|
||||
def resource
|
||||
card
|
||||
end
|
||||
|
||||
def recipients
|
||||
card.watchers_and_subscribers.without(creator)
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,2 @@
|
||||
class Notifier::Events::Closed < Notifier::Events::Base
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
class Notifier::Events::Commented < Notifier::Events::Base
|
||||
private
|
||||
def resource
|
||||
source.comment
|
||||
end
|
||||
end
|
||||
@@ -1,4 +1,4 @@
|
||||
class Notifier::Published < Notifier
|
||||
class Notifier::Events::Published < Notifier::Events::Base
|
||||
private
|
||||
def recipients
|
||||
card.watchers_and_subscribers(include_only_watching: true).without(creator)
|
||||
Reference in New Issue
Block a user