projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2b6c1b
)
Apply suggestion to lib/pleroma/notification.ex
author
rinpatch
<rinpatch@sdf.org>
Wed, 4 Sep 2019 10:14:15 +0000
(10:14 +0000)
committer
rinpatch
<rinpatch@sdf.org>
Wed, 4 Sep 2019 10:14:15 +0000
(10:14 +0000)
lib/pleroma/notification.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/notification.ex
b/lib/pleroma/notification.ex
index d7e23299223728325a9cd8d3911d138eb3ea46d0..b7c880c51584da65c62d87e194ee6dbc3bdc1b1d 100644
(file)
--- a/
lib/pleroma/notification.ex
+++ b/
lib/pleroma/notification.ex
@@
-116,7
+116,8
@@
defmodule Pleroma.Notification do
{_, notification_ids} = Repo.update_all(query, [])
- from(n in Notification, where: n.id in ^notification_ids)
+ Notification
+ |> where([n], n.id in ^notification_ids)
|> join(:inner, [n], activity in assoc(n, :activity))
|> join(:left, [n, a], object in Object,
on: