diff options
Diffstat (limited to 'app/workers/mail/mentioned.rb')
-rw-r--r-- | app/workers/mail/mentioned.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/workers/mail/mentioned.rb b/app/workers/mail/mentioned.rb new file mode 100644 index 000000000..950063ec6 --- /dev/null +++ b/app/workers/mail/mentioned.rb @@ -0,0 +1,16 @@ +# Copyright (c) 2010-2011, Diaspora Inc. This file is +# licensed under the Affero General Public License version 3 or later. See +# the COPYRIGHT file. + + +module Workers + module Mail + class Mentioned < Base + sidekiq_options queue: :mail + + def perform(recipient_id, actor_id, target_id) + Notifier.mentioned( recipient_id, actor_id, target_id).deliver + end + end + end +end |