Moving Salmon notifications to background processing, fixing mini-profiler
behaviour with Turbolinks enabled, optimizing Rabl for production
This commit is contained in:
parent
da4b675aca
commit
85b00d19b8
15 changed files with 49 additions and 35 deletions
|
@ -24,7 +24,7 @@ class ProcessMentionsService < BaseService
|
|||
if mentioned_account.local?
|
||||
NotificationMailer.mention(mentioned_account, status).deliver_later
|
||||
else
|
||||
send_interaction_service.(status.stream_entry, mentioned_account)
|
||||
NotificationWorker.perform_async(status.stream_entry.id, mentioned_account.id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -34,8 +34,4 @@ class ProcessMentionsService < BaseService
|
|||
def follow_remote_account_service
|
||||
@follow_remote_account_service ||= FollowRemoteAccountService.new
|
||||
end
|
||||
|
||||
def send_interaction_service
|
||||
@send_interaction_service ||= SendInteractionService.new
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue