From: rinpatch Date: Wed, 4 Sep 2019 10:14:15 +0000 (+0000) Subject: Apply suggestion to lib/pleroma/notification.ex X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=7c3838090f86fbfdbf4e45fcfbabc21c19f26924;p=akkoma Apply suggestion to lib/pleroma/notification.ex --- 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: