diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-10-23 20:03:35 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-10-23 20:03:35 +0200 |
commit | ed8d06212f439b9fe2f170a6f43d6be6d586ff80 (patch) | |
tree | ac3f4100e27a9341c32c15e07661af841c547ec0 | |
parent | 8f3096b846f6af87d74304c98fcc66932140f42d (diff) |
Keep back own DMs in Home timeline
Follow-up to e45a6edd6574c86409333cc64f9fb87e1b0a196e, fixes inconsistencies in glitch-soc behavior.
-rw-r--r-- | app/services/fan_out_on_write_service.rb | 3 |
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 0e9465d48..63cab8403 100644 --- a/app/services/fan_out_on_write_service.rb +++ b/app/services/fan_out_on_write_service.rb @@ -6,6 +6,8 @@ class FanOutOnWriteService < BaseService def call(status) raise Mastodon::RaceConditionError if status.visibility.nil? + deliver_to_self(status) if status.account.local? + render_anonymous_payload(status) if status.direct_visibility? @@ -15,7 +17,6 @@ class FanOutOnWriteService < BaseService 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 |