[#1304] Extra bullet-proofing.
authorIvan Tashkinov <ivantashkinov@gmail.com>
Wed, 23 Oct 2019 16:30:02 +0000 (19:30 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Wed, 23 Oct 2019 16:30:02 +0000 (19:30 +0300)
lib/pleroma/web/activity_pub/activity_pub.ex

index 7fc5051ea6307f308d053b4e2ac61a725614ae06..07dde35373cb407d450a5b3767a70d2739eebb2f 100644 (file)
@@ -1164,7 +1164,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
     with {:enabled, true} <-
            {:enabled, Pleroma.Config.get([:instance, :external_user_synchronization])},
          {:ok, info} <- fetch_follow_information_for_user(data) do
-      info = Map.merge(data.info, info)
+      info = Map.merge(data[:info] || %{}, info)
       Map.put(data, :info, info)
     else
       {:enabled, false} ->