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:
lambda 2019-02-19 14:07:16 +00:00
commit f53dc5ee08
1 changed files with 1 additions and 0 deletions

View File

@ -237,6 +237,7 @@ defmodule Pleroma.User 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