Skip to content
Snippets Groups Projects
Commit 09c5991f authored by lain's avatar lain
Browse files

Apply suggestion to lib/pleroma/notification.ex

parent c01f4ca0
No related branches found
No related tags found
No related merge requests found
......@@ -367,7 +367,7 @@ defp do_create_notifications(%Activity{} = activity, options) do
do_send = do_send && user in enabled_receivers
create_notification(activity, user, do_send)
end)
|> Enum.filter(& &1)
|> Enum.reject(&is_nil/1)
{:ok, notifications}
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment