0
0
Fork 0

Actually filter blocked reblogs from feed

And even a relevant test. Whoops.
This commit is contained in:
aschmitz 2017-11-11 22:10:49 -06:00
parent 48c705bbad
commit 9a42f7cbed
2 changed files with 10 additions and 1 deletions

View file

@ -56,6 +56,13 @@ RSpec.describe FeedManager do
expect(FeedManager.instance.filter?(:home, reblog, bob.id)).to be true
end
it 'returns true for reblog from account with reblogs disabled' do
status = Fabricate(:status, text: 'Hello world', account: jeff)
reblog = Fabricate(:status, reblog: status, account: alice)
bob.follow!(alice, reblogs: false)
expect(FeedManager.instance.filter?(:home, reblog, bob.id)).to be true
end
it 'returns false for reply by followee to another followee' do
status = Fabricate(:status, text: 'Hello world', account: jeff)
reply = Fabricate(:status, text: 'Nay', thread: status, account: alice)