[#1112] Preserving id on user insert conflict on order not to violate conversation_partipations_user_id_fkey constraint.
This commit is contained in:
parent
93df0796f0
commit
d0198fe215
2 changed files with 2 additions and 1 deletions
|
|
@ -1211,7 +1211,7 @@ defmodule Pleroma.User do
|
|||
data
|
||||
|> Map.put(:name, blank?(data[:name]) || data[:nickname])
|
||||
|> remote_user_creation()
|
||||
|> Repo.insert(on_conflict: :replace_all, conflict_target: :nickname)
|
||||
|> Repo.insert(on_conflict: :replace_all_except_primary_key, conflict_target: :nickname)
|
||||
|> set_cache()
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue