Commit f53dc5ee authored by lain's avatar lain

Merge branch 'fix/ap_id-unique_constraint' into 'develop'

mark ap_id unique_constraint

See merge request pleroma/pleroma!842
parents 833161b5 109b01a6
...@@ -237,6 +237,7 @@ def register_changeset(struct, params \\ %{}, opts \\ []) do ...@@ -237,6 +237,7 @@ def register_changeset(struct, params \\ %{}, opts \\ []) do
changeset changeset
|> put_change(:password_hash, hashed) |> put_change(:password_hash, hashed)
|> put_change(:ap_id, ap_id) |> put_change(:ap_id, ap_id)
|> unique_constraint(:ap_id)
|> put_change(:following, [followers]) |> put_change(:following, [followers])
|> put_change(:follower_address, followers) |> put_change(:follower_address, followers)
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment