fix typo.

This commit is contained in:
lain 2018-02-18 23:13:19 +01:00
parent 8b11546334
commit 932d346d35

View file

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