0
0
Fork 0

Change notifications from moderators to not be filtered (#33654)

This commit is contained in:
Claire 2025-01-21 12:39:53 +01:00 committed by GitHub
parent 11786f1114
commit 3dcf5e12b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 8 deletions

View file

@ -319,6 +319,16 @@ RSpec.describe NotifyService do
end
end
context 'when sender is a moderator' do
let(:sender_role) { Fabricate(:user_role, highlighted: true, permissions: UserRole::FLAGS[:manage_users]) }
let(:sender) { Fabricate(:user, role: sender_role).account }
let(:activity) { Fabricate(:mention, status: Fabricate(:status, account: sender)) }
it 'returns false' do
expect(subject.filter?).to be false
end
end
context 'when sender is followed by recipient' do
before do
notification.account.follow!(notification.from_account)