diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-14 13:54:50 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:18 -0500 |
commit | e3b316dd3e797a9c266fc1ec5e104845df1da9c6 (patch) | |
tree | 0515985367a2f8e23ca8c132f6963b6ac3b5fcd6 | |
parent | 1ecb79bb1e88c17c05a6e12f1ee9ab108f0ae071 (diff) |
[Bug] Deliver local non-reblogs to public timeline
-rw-r--r-- | app/services/fan_out_on_write_service.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/services/fan_out_on_write_service.rb b/app/services/fan_out_on_write_service.rb index 1e12def33..2e3061b07 100644 --- a/app/services/fan_out_on_write_service.rb +++ b/app/services/fan_out_on_write_service.rb @@ -25,15 +25,20 @@ class FanOutOnWriteService < BaseService return if status.account.silenced? - deliver_to_public(status.reblog) if status.local? && status.reblog? && status.reblog.public_visibility? && !status.reblog.account.silenced? + if status.reblog? + return deliver_to_public(status.reblog) if status.local? && status.reblog.public_visibility? && !status.reblog.account.silenced? - return if status.reblog? || !status.public_visibility? + return + end + + return unless status.public_visibility? deliver_to_hashtags(status) return if status.reply? && status.in_reply_to_account_id != status.account_id && !Setting.show_replies_in_public_timelines deliver_to_media(status) if status.media_attachments.any? + deliver_to_public(status) if status.local? end private |