about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-09-01 13:30:42 +0200
committerGitHub <noreply@github.com>2020-09-01 13:30:42 +0200
commit1c308af84cddf8491b11aa6431c225faa80a9a5b (patch)
tree8b3a1967c1aa7953335ee517cf993e3458f78b07 /app/services
parent6d98b039a5cff6d97e84ecdad31897c35ed27319 (diff)
Change own direct-visibility statuses to be in the home feed again (#14711)
And remove highlighting in web UI

Full circle from #8940
Diffstat (limited to 'app/services')
-rw-r--r--app/services/fan_out_on_write_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/fan_out_on_write_service.rb b/app/services/fan_out_on_write_service.rb
index e05d02cef..4f6c64de1 100644
--- a/app/services/fan_out_on_write_service.rb
+++ b/app/services/fan_out_on_write_service.rb
@@ -6,12 +6,13 @@ class FanOutOnWriteService < BaseService
   def call(status)
     raise Mastodon::RaceConditionError if status.visibility.nil?
 
+    deliver_to_self(status) if status.account.local?
+
     if status.direct_visibility?
       deliver_to_own_conversation(status)
     elsif status.limited_visibility?
       deliver_to_mentioned_followers(status)
     else
-      deliver_to_self(status) if status.account.local?
       deliver_to_followers(status)
       deliver_to_lists(status)
     end