[#1364] Improved notification-related tests.

This commit is contained in:
Ivan Tashkinov 2020-03-16 21:58:10 +03:00
commit 7438833685
2 changed files with 79 additions and 43 deletions

View file

@ -344,6 +344,7 @@ defmodule Pleroma.Notification do
|> Utils.maybe_notify_followers(activity)
|> Enum.uniq()
# Since even subscribers and followers can mute / thread-mute, filtering all above AP IDs
notification_enabled_ap_ids =
potential_receiver_ap_ids
|> exclude_relation_restricting_ap_ids(activity)