diff options
author | rinpatch <rinpatch@sdf.org> | 2019-09-04 10:14:15 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-09-04 10:14:15 +0000 |
commit | 7c3838090f86fbfdbf4e45fcfbabc21c19f26924 (patch) | |
tree | 9e0e57bdcb3ada79697be45d1cd699a2fce210a7 /lib | |
parent | c2b6c1b089a813cf8c7cbd54c0f80bee4985522c (diff) | |
download | pleroma-7c3838090f86fbfdbf4e45fcfbabc21c19f26924.tar.gz pleroma-7c3838090f86fbfdbf4e45fcfbabc21c19f26924.zip |
Apply suggestion to lib/pleroma/notification.ex
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/notification.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index d7e232992..b7c880c51 100644 --- 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: |