mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-18 10:59:17 +00:00
Merge branch 'fix/ap_id-unique_constraint' into 'develop'
mark ap_id unique_constraint See merge request pleroma/pleroma!842
This commit is contained in:
commit
f53dc5ee08
|
@ -237,6 +237,7 @@ def register_changeset(struct, params \\ %{}, opts \\ []) do
|
|||
changeset
|
||||
|> put_change(:password_hash, hashed)
|
||||
|> put_change(:ap_id, ap_id)
|
||||
|> unique_constraint(:ap_id)
|
||||
|> put_change(:following, [followers])
|
||||
|> put_change(:follower_address, followers)
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue