Apply suggestion to lib/pleroma/notification.ex
authorrinpatch <rinpatch@sdf.org>
Wed, 4 Sep 2019 10:14:15 +0000 (10:14 +0000)
committerrinpatch <rinpatch@sdf.org>
Wed, 4 Sep 2019 10:14:15 +0000 (10:14 +0000)
lib/pleroma/notification.ex

index d7e23299223728325a9cd8d3911d138eb3ea46d0..b7c880c51584da65c62d87e194ee6dbc3bdc1b1d 100644 (file)
@@ -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: