Skip to content
Snippets Groups Projects
Commit d95ac274 authored by lain's avatar lain
Browse files

On user making, check if we have a user with that uri.

parent 04544da8
No related branches found
No related tags found
No related merge requests found
......@@ -235,8 +235,12 @@ defmodule Pleroma.Web.OStatus do
info: info,
avatar: info["avatar"]
}
cs = User.remote_user_creation(data)
Repo.insert(cs)
with %User{} = user <- User.get_by_ap_id(data.ap_id) do
{:ok, user}
else _e ->
cs = User.remote_user_creation(data)
Repo.insert(cs)
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment