From 7483681f23a3a0c644b339ce09bd854f8f462242 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Wed, 24 Aug 2022 13:48:19 +0100 Subject: [PATCH] mix format --- lib/mix/tasks/pleroma/user.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/mix/tasks/pleroma/user.ex b/lib/mix/tasks/pleroma/user.ex index 97d822477..fe3e7369f 100644 --- a/lib/mix/tasks/pleroma/user.ex +++ b/lib/mix/tasks/pleroma/user.ex @@ -270,13 +270,15 @@ def run(["broadcast_public_keys" | _rest]) do users |> Enum.each(fn user -> IO.puts("Broadcasting: #{user.ap_id}") - changeset = User.update_changeset(user, %{ keys: user.keys }) + changeset = User.update_changeset(user, %{keys: user.keys}) {:ok, unpersisted_user} = Ecto.Changeset.apply_action(changeset, :update) + updated_object = Pleroma.Web.ActivityPub.UserView.render("user.json", user: unpersisted_user) |> Map.delete("@context") {:ok, update_data, []} = Builder.update(user, updated_object) + {:ok, _update, _} = Pipeline.common_pipeline(update_data, local: true,