Class: Notifications::CommentOnPost
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Commented
#deleted_translation_key
concatenate_or_create, create_notification, #email_the_user, for, #linked_object, #set_read_state
included, #set_guid
Class Method Details
.notify(comment, _recipient_user_ids) ⇒ Object
15
16
17
18
19
20
21
22
23
|
# File 'app/models/notifications/comment_on_post.rb', line 15
def self.notify(, _recipient_user_ids)
actor = .author
= ..author
return unless .local? && actor !=
return if mention_notification_exists?(, )
concatenate_or_create(.owner, ., actor).email_the_user(, actor)
end
|
Instance Method Details
#mail_job ⇒ Object
7
8
9
|
# File 'app/models/notifications/comment_on_post.rb', line 7
def mail_job
Workers::Mail::
end
|
11
12
13
|
# File 'app/models/notifications/comment_on_post.rb', line 11
def
"notifications.comment_on_post"
end
|