about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-21 08:41:00 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-21 08:44:30 +0100
commit46cbb9c551b53e0255a382757744b2b1ae815b71 (patch)
tree772df535dde6d12f07e1f1aa40337cd88a2fb683 /app
parent253ab265207c4e556470e4aa45fc502a5c9480ad (diff)
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)
Diffstat (limited to 'app')
-rw-r--r--app/services/fan_out_on_write_service.rb2
-rw-r--r--app/views/accounts/_grid_card.html.haml2
2 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 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
 
diff --git a/app/views/accounts/_grid_card.html.haml b/app/views/accounts/_grid_card.html.haml
index 454272d8c..d7751a323 100644
--- a/app/views/accounts/_grid_card.html.haml
+++ b/app/views/accounts/_grid_card.html.haml
@@ -5,4 +5,4 @@
       = link_to url_for_target(account) do
         %span.display_name= display_name(account)
         %span.username= "@#{account.acct}"
-  %p.note= truncate(account.note, length: 124)
+  %p.note= truncate(account.note, length: 150)