mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-20 08:30:59 +00:00
For existing users, just replace info.
This commit is contained in:
parent
decbf3a47f
commit
8b11546334
1 changed files with 6 additions and 0 deletions
|
@ -273,6 +273,12 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
|||
}
|
||||
|
||||
User.insert_or_update_user(user_data)
|
||||
if user = User.get_by_ap_id(ap_id) do
|
||||
User.info_changeset(user, user_data}
|
||||
|> Repo.update
|
||||
else
|
||||
User.insert_or_update_user(user_data)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue