mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-19 11:45:01 +00:00
On user making, check if we have a user with that uri.
This commit is contained in:
parent
04544da8f1
commit
d95ac274d6
1 changed files with 6 additions and 2 deletions
|
@ -235,8 +235,12 @@ defmodule Pleroma.Web.OStatus do
|
||||||
info: info,
|
info: info,
|
||||||
avatar: info["avatar"]
|
avatar: info["avatar"]
|
||||||
}
|
}
|
||||||
cs = User.remote_user_creation(data)
|
with %User{} = user <- User.get_by_ap_id(data.ap_id) do
|
||||||
Repo.insert(cs)
|
{:ok, user}
|
||||||
|
else _e ->
|
||||||
|
cs = User.remote_user_creation(data)
|
||||||
|
Repo.insert(cs)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue