summaryrefslogtreecommitdiffstats
path: root/app/services/favourite_service.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-26 13:42:10 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-26 13:42:10 +0100
commit85b00d19b840bae98322c2372e8e0e3ebd66f2e0 (patch)
tree7eee05cd92cdcc0b97a07d2a94f8ee661f6eaca7 /app/services/favourite_service.rb
parentda4b675aca2c68e976d7920d3fc5b7e2881d1d86 (diff)
Moving Salmon notifications to background processing, fixing mini-profiler
behaviour with Turbolinks enabled, optimizing Rabl for production
Diffstat (limited to 'app/services/favourite_service.rb')
-rw-r--r--app/services/favourite_service.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/app/services/favourite_service.rb b/app/services/favourite_service.rb
index 4a8ecfacbf6..3d0bc718c8e 100644
--- a/app/services/favourite_service.rb
+++ b/app/services/favourite_service.rb
@@ -10,15 +10,9 @@ class FavouriteService < BaseService
if status.local?
NotificationMailer.favourite(status, account).deliver_later
else
- send_interaction_service.(favourite.stream_entry, status.account)
+ NotificationWorker.perform_async(favourite.stream_entry.id, status.account_id)
end
favourite
end
-
- private
-
- def send_interaction_service
- @send_interaction_service ||= SendInteractionService.new
- end
end