0
0
Fork 0

hide mentions of muted accounts (in home col) (#190)

* hide mentions of muted accounts (in home col)

also cleans up some old crap

* add test
This commit is contained in:
beatrix 2017-10-20 10:49:54 -04:00 committed by GitHub
parent b15dd05514
commit a7be86e875
2 changed files with 8 additions and 6 deletions

View file

@ -105,6 +105,13 @@ RSpec.describe FeedManager do
expect(FeedManager.instance.filter?(:home, status, bob.id)).to be true
end
it 'returns true for status by followee mentioning muted account' do
bob.mute!(jeff)
bob.follow!(alice)
status = PostStatusService.new.call(alice, 'Hey @jeff')
expect(FeedManager.instance.filter?(:home, status, bob.id)).to be true
end
it 'returns true for reblog of a personally blocked domain' do
alice.block_domain!('example.com')
alice.follow!(jeff)