about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-25 14:12:24 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-25 14:12:24 +0100
commite24bfbde1acbef73cd3c58753a572da2bcb59200 (patch)
tree7d05e3b3ad634f63d1e94de6ebfd16f64cfb9789 /app/lib
parent8eeec389c11298ad1be163dd65c5ae79e06867ca (diff)
Fixing FanOutOnWriteService, fixing Sidekiq not having enough DB connections
in the pool, adding a throttle of 60rpm per IP, adding mini profiler, adding
admin status to users
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/feed_manager.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/feed_manager.rb b/app/lib/feed_manager.rb
index eaa9393d5..a19d06a85 100644
--- a/app/lib/feed_manager.rb
+++ b/app/lib/feed_manager.rb
@@ -6,6 +6,7 @@ class FeedManager
   end
 
   def self.filter_status?(status, follower)
+    replied_to_user = status.reply? ? status.thread.account : nil
     (status.reply? && !(follower.id = replied_to_user.id || follower.following?(replied_to_user)))
   end
 end