mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-11 01:35:24 +00:00
Apply suggestion to lib/pleroma/notification.ex
This commit is contained in:
parent
c01f4ca07f
commit
09c5991f82
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ defmodule Pleroma.Notification do
|
||||||
do_send = do_send && user in enabled_receivers
|
do_send = do_send && user in enabled_receivers
|
||||||
create_notification(activity, user, do_send)
|
create_notification(activity, user, do_send)
|
||||||
end)
|
end)
|
||||||
|> Enum.filter(& &1)
|
|> Enum.reject(&is_nil/1)
|
||||||
|
|
||||||
{:ok, notifications}
|
{:ok, notifications}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue