From: lain Date: Mon, 29 Jun 2020 16:04:14 +0000 (+0000) Subject: Apply suggestion to lib/pleroma/notification.ex X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=09c5991f82e91878a940f5957ac993e1fca72545;p=akkoma Apply suggestion to lib/pleroma/notification.ex --- diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index 58dcf880a..2ef1a80c5 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -367,7 +367,7 @@ defmodule Pleroma.Notification 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