Skip to content

Commit

Permalink
Fix: domain timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
atsu1125 committed Mar 13, 2023
1 parent 686091e commit dfc6c34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/services/fan_out_on_write_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ def broadcast_to_hashtag_streams!

def broadcast_to_public_streams!
return if @status.reply? && @status.in_reply_to_account_id != @account.id && !Setting.show_replies_in_public_timelines
domain = @status.account.domain.mb_chars.downcase

if !@status.local?
domain = @status.account.domain.mb_chars.downcase
end

Redis.current.publish('timeline:public', anonymous_payload)
Redis.current.publish(@status.local? ? 'timeline:public:local' : 'timeline:public:remote', anonymous_payload)
Expand Down

0 comments on commit dfc6c34

Please sign in to comment.