Skip to content
Extraits de code Groupes Projets
Valider 33a71e8f rédigé par ThibG's avatar ThibG Validation de Eugen Rochko
Parcourir les fichiers

Do not hide boost notifications from followed people with hidden boosts (#9147)

* Do not hide boost notifications from followed people with hidden boosts

Not displaying boosts from a followed user in the Home timeline and not
having notifications when they reblog your own content are two very
separate concerns, tying them together seem counter-intuitive and unwanted.

* Update specs accordingly
parent e84da282
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -31,7 +31,7 @@ class NotifyService < BaseService
end
def blocked_reblog?
@recipient.muting_reblogs?(@notification.from_account)
false
end
def blocked_follow_request?
......
......@@ -104,9 +104,9 @@ RSpec.describe NotifyService, type: :service do
is_expected.to change(Notification, :count)
end
it 'hides reblogs when disabled' do
recipient.follow!(sender, reblogs: false)
is_expected.to_not change(Notification, :count)
it 'shows reblogs when disabled' do
recipient.follow!(sender, reblogs: true)
is_expected.to change(Notification, :count)
end
end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter