projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c01f4ca
)
Apply suggestion to lib/pleroma/notification.ex
author
lain
<lain@soykaf.club>
Mon, 29 Jun 2020 16:04:14 +0000
(16:04 +0000)
committer
lain
<lain@soykaf.club>
Mon, 29 Jun 2020 16:04:14 +0000
(16:04 +0000)
lib/pleroma/notification.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/notification.ex
b/lib/pleroma/notification.ex
index 58dcf880a54d8b27ace3a125ed7fc8bf28128f74..2ef1a80c5746a27013282f63cc91f39eb3724c2b 100644
(file)
--- 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