From: Maksim Date: Wed, 4 Sep 2019 18:35:01 +0000 (+0000) Subject: Apply suggestion to lib/pleroma/web/activity_pub/utils.ex X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e2011a667cdf5e67f257c9c30a02c206fb4df913;p=akkoma Apply suggestion to lib/pleroma/web/activity_pub/utils.ex --- diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex index 2de02f607..011acd48e 100644 --- a/lib/pleroma/web/activity_pub/utils.ex +++ b/lib/pleroma/web/activity_pub/utils.ex @@ -359,7 +359,7 @@ defmodule Pleroma.Web.ActivityPub.Utils do "Follow" |> Activity.Queries.by_type() |> Activity.Queries.by_actor(actor) - |> Activity.Queries.by_object_id(object["id"]) + |> Activity.Queries.by_object_id(object) |> where(fragment("data->>'state' = 'pending'")) |> update(set: [data: fragment("jsonb_set(data, '{state}', ?)", ^state)]) |> Repo.update_all([])