From 46cbb9c551b53e0255a382757744b2b1ae815b71 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 21 Mar 2016 08:41:00 +0100 Subject: Increase note truncation length on account grids, improve FanOutOnWrite a bit, fix tests (the recorded Salmon fixture expects LOCAL_DOMAIN to be something specific unfortunately) --- app/services/fan_out_on_write_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services') diff --git a/app/services/fan_out_on_write_service.rb b/app/services/fan_out_on_write_service.rb index 87a83e892..3d94f1049 100644 --- a/app/services/fan_out_on_write_service.rb +++ b/app/services/fan_out_on_write_service.rb @@ -11,7 +11,7 @@ class FanOutOnWriteService < BaseService # Deliver to local followers status.account.followers.each do |follower| - next if (status.reply? && !follower.following?(replied_to_user)) || !follower.local? + next if (status.reply? && !(follower.id = replied_to_user.id || follower.following?(replied_to_user))) || !follower.local? push(:home, follower.id, status) end -- cgit