Skip to content

Commit

Permalink
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/services/fan_out_on_write_service.rb
Original file line number Diff line number Diff line change
@@ -57,6 +57,7 @@ def fan_out_to_local_recipients!
when :limited
deliver_to_lists_mentioned_accounts_only!
deliver_to_antennas! unless @account.dissubscribable
deliver_to_stl_antennas!
deliver_to_mentioned_followers!
else
deliver_to_mentioned_followers!
18 changes: 18 additions & 0 deletions spec/services/fan_out_on_write_service_spec.rb
Original file line number Diff line number Diff line change
@@ -162,6 +162,24 @@ def antenna_with_options(owner, **options)
expect(antenna_feed_of(empty_antenna)).to_not include status.id
end
end

context 'with STL antenna' do
let!(:antenna) { antenna_with_options(bob, stl: true) }
let!(:empty_antenna) { antenna_with_options(ohagi, stl: true) }

it 'is added to the antenna feed of antenna follower' do
expect(antenna_feed_of(antenna)).to include status.id
expect(antenna_feed_of(empty_antenna)).to_not include status.id
end
end

context 'with LTL antenna' do
let!(:empty_antenna) { antenna_with_options(bob, ltl: true) }

it 'is added to the antenna feed of antenna follower' do
expect(antenna_feed_of(empty_antenna)).to_not include status.id
end
end
end

context 'when status is private' do

0 comments on commit b33b6c3

Please sign in to comment.