Fix `Transmogrifier.upgrade_user_from_ap_id/1`
authorEgor Kislitsyn <egor@kislitsyn.com>
Mon, 16 Sep 2019 12:26:00 +0000 (19:26 +0700)
committerEgor Kislitsyn <egor@kislitsyn.com>
Mon, 16 Sep 2019 12:26:00 +0000 (19:26 +0700)
lib/pleroma/web/activity_pub/transmogrifier.ex

index acb3087d06defa4d869699ee08642fe05fb9e3fb..8461b666e2c0ca641ec680540ed6b8f90099d99b 100644 (file)
@@ -1050,7 +1050,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
     with %User{local: false} = user <- User.get_cached_by_ap_id(ap_id),
          {:ok, data} <- ActivityPub.fetch_and_prepare_user_from_ap_id(ap_id),
          already_ap <- User.ap_enabled?(user),
-         {:ok, user} <- user |> User.upgrade_changeset(data) |> User.update_and_set_cache() do
+         {:ok, user} <- user |> User.upgrade_changeset(data, true) |> User.update_and_set_cache() do
       unless already_ap do
         TransmogrifierWorker.enqueue("user_upgrade", %{"user_id" => user.id})
       end