From: Egor Kislitsyn Date: Mon, 16 Sep 2019 12:26:00 +0000 (+0700) Subject: Fix `Transmogrifier.upgrade_user_from_ap_id/1` X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=085d014f0859b3b3e5023c423ae0361ec6ed6c67;p=akkoma Fix `Transmogrifier.upgrade_user_from_ap_id/1` --- diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index acb3087d0..8461b666e 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -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