Add ability to filter followed accounts' posts by language (#19095)
This commit is contained in:
parent
882e54c786
commit
50948b46aa
30 changed files with 298 additions and 39 deletions
|
@ -121,6 +121,19 @@ RSpec.describe FollowService, type: :service do
|
|||
expect(sender.muting_reblogs?(bob)).to be false
|
||||
end
|
||||
end
|
||||
|
||||
describe 'already followed account, changing languages' do
|
||||
let(:bob) { Fabricate(:account, username: 'bob') }
|
||||
|
||||
before do
|
||||
sender.follow!(bob)
|
||||
subject.call(sender, bob, languages: %w(en es))
|
||||
end
|
||||
|
||||
it 'changes languages' do
|
||||
expect(Follow.find_by(account: sender, target_account: bob)&.languages).to match_array %w(en es)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'remote ActivityPub account' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue