Apply suggestion to lib/pleroma/notification.ex

This commit is contained in:
Ivan Tashkinov 2020-04-22 15:31:41 +00:00
parent bb5d0eafa4
commit b03aeae8b9

View File

@ -362,7 +362,7 @@ defmodule Pleroma.Notification do
def get_notified_from_activity(_, _local_only), do: {[], []} def get_notified_from_activity(_, _local_only), do: {[], []}
@doc "Filters out AP IDs of users who domain-block and not follow activity actor" @doc "Filters out AP IDs domain-blocking and not following the activity's actor"
def exclude_domain_blocker_ap_ids(ap_ids, activity, preloaded_users \\ []) def exclude_domain_blocker_ap_ids(ap_ids, activity, preloaded_users \\ [])
def exclude_domain_blocker_ap_ids([], _activity, _preloaded_users), do: [] def exclude_domain_blocker_ap_ids([], _activity, _preloaded_users), do: []