Revert "Merge branch 'streamer-refactoring' into 'develop'"
[akkoma] / 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: