mix format
This commit is contained in:
parent
24f072fd81
commit
7483681f23
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue