Notifications: Never return nil in the notification list.
This commit is contained in:
parent
dc31fbfe6c
commit
90083a754d
2 changed files with 13 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue