diff options
author | lain <lain@soykaf.club> | 2020-06-29 17:48:18 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-06-29 17:48:18 +0200 |
commit | 90083a754dc0bfe0c8a04fbaa3e78f68a848035e (patch) | |
tree | 22039e64370a60fe7e367ee2e292d46f9af2cf3d /lib | |
parent | dc31fbfe6ce0c43d2ae0ce32f3101950f0d24813 (diff) | |
download | pleroma-90083a754dc0bfe0c8a04fbaa3e78f68a848035e.tar.gz |
Notifications: Never return `nil` in the notification list.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/notification.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index 9ee9606be..58dcf880a 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -367,6 +367,7 @@ defmodule Pleroma.Notification do do_send = do_send && user in enabled_receivers create_notification(activity, user, do_send) end) + |> Enum.filter(& &1) {:ok, notifications} end |