fix typo.
authorlain <lain@soykaf.club>
Sun, 18 Feb 2018 22:13:19 +0000 (23:13 +0100)
committerlain <lain@soykaf.club>
Sun, 18 Feb 2018 22:13:19 +0000 (23:13 +0100)
lib/pleroma/web/activity_pub/activity_pub.ex

index 4e46e80ea1128b4a2b15745be32ebdc7c678c374..18c2c190064ddd2a2ae87d4f8408e514f9adaf70 100644 (file)
@@ -272,9 +272,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
         name: data["name"]
       }
 
-      User.insert_or_update_user(user_data)
       if user = User.get_by_ap_id(ap_id) do
-        User.info_changeset(user, user_data}
+        User.info_changeset(user, user_data)
         |> Repo.update
       else
         User.insert_or_update_user(user_data)