about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-21 22:04:10 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-21 22:04:10 +0100
commit7944ed6fe51d00e49a044e04e624e72ff7be3bce (patch)
treec8a5ccd2c50e641eeaefab2f308f7ad2076e2647 /app/services
parent627a85f4e4019248ea1bfb68a6536a726d8f8f69 (diff)
Adding option to specify asset server, filter followers query by local accounts
during Fan Out On Write to load less stuff into memory
Diffstat (limited to 'app/services')
-rw-r--r--app/services/fan_out_on_write_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/fan_out_on_write_service.rb b/app/services/fan_out_on_write_service.rb
index 70cf06e02..78cb0b13f 100644
--- a/app/services/fan_out_on_write_service.rb
+++ b/app/services/fan_out_on_write_service.rb
@@ -24,8 +24,8 @@ class FanOutOnWriteService < BaseService
   def deliver_to_followers(status)
     Rails.logger.debug "Delivering status #{status.id} to followers"
 
-    status.account.followers.find_each do |follower|
-      next if !follower.local? || FeedManager.instance.filter?(:home, status, follower)
+    status.account.followers.where(domain: nil).find_each do |follower|
+      next if FeedManager.instance.filter?(:home, status, follower)
       FeedManager.instance.push(:home, follower, status)
     end
   end