diff options
author | lain <lain@soykaf.club> | 2020-06-29 16:04:14 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-06-29 16:04:14 +0000 |
commit | 09c5991f82e91878a940f5957ac993e1fca72545 (patch) | |
tree | e6088678b06db52e2251b698da75022b99a9b284 | |
parent | c01f4ca07f3a3e47fb6532c55128c427fbc1f77e (diff) | |
download | pleroma-09c5991f82e91878a940f5957ac993e1fca72545.tar.gz |
Apply suggestion to lib/pleroma/notification.ex
-rw-r--r-- | lib/pleroma/notification.ex | 2 |
1 files changed, 1 insertions, 1 deletions
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 |