mix format
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
ci/woodpecker/pr/woodpecker Pipeline is pending

This commit is contained in:
FloatingGhost 2022-08-24 13:48:19 +01:00
parent 24f072fd81
commit 7483681f23

View file

@ -272,11 +272,13 @@ def run(["broadcast_public_keys" | _rest]) do
IO.puts("Broadcasting: #{user.ap_id}") 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) {:ok, unpersisted_user} = Ecto.Changeset.apply_action(changeset, :update)
updated_object = updated_object =
Pleroma.Web.ActivityPub.UserView.render("user.json", user: unpersisted_user) Pleroma.Web.ActivityPub.UserView.render("user.json", user: unpersisted_user)
|> Map.delete("@context") |> Map.delete("@context")
{:ok, update_data, []} = Builder.update(user, updated_object) {:ok, update_data, []} = Builder.update(user, updated_object)
{:ok, _update, _} = {:ok, _update, _} =
Pipeline.common_pipeline(update_data, Pipeline.common_pipeline(update_data,
local: true, local: true,