Apply suggestion to lib/pleroma/notification.ex

This commit is contained in:
lain 2020-05-07 11:01:52 +00:00
parent f57fa2a00d
commit 8ae4d64d47

View file

@ -357,7 +357,7 @@ def get_notified_from_activity(%Activity{data: %{"type" => type}} = activity, lo
def get_notified_from_activity(_, _local_only), do: {[], []} def get_notified_from_activity(_, _local_only), do: {[], []}
# For some actitivies, only notifity the author of the object # For some activities, only notify the author of the object
def get_potential_receiver_ap_ids(%{data: %{"type" => type, "object" => object_id}}) def get_potential_receiver_ap_ids(%{data: %{"type" => type, "object" => object_id}})
when type in ~w{Like Announce EmojiReact} do when type in ~w{Like Announce EmojiReact} do
case Object.get_cached_by_ap_id(object_id) do case Object.get_cached_by_ap_id(object_id) do