1
0
mirror of https://github.com/mastodon/mastodon synced 2024-12-18 16:48:22 +09:00
mastodon/app/workers/notification_worker.rb
Eugen Rochko 85b00d19b8 Moving Salmon notifications to background processing, fixing mini-profiler
behaviour with Turbolinks enabled, optimizing Rabl for production
2016-03-26 13:42:10 +01:00

8 lines
212 B
Ruby

class NotificationWorker
include Sidekiq::Worker
def perform(stream_entry_id, target_account_id)
SendInteractionService.new.(StreamEntry.find(stream_entry_id), Account.find(target_account_id))
end
end