diff options
author | rinpatch <rinpatch@sdf.org> | 2019-02-19 13:52:15 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-02-19 13:52:15 +0300 |
commit | 109b01a6318e01566a3a148c9c9ecd0313546f5f (patch) | |
tree | d153a878ea8cb46c5118e94902d041437f403cc5 /lib | |
parent | 1ce1b7b58dc0e009635c9dd6e2571df56c04f356 (diff) | |
download | pleroma-109b01a6318e01566a3a148c9c9ecd0313546f5f.tar.gz |
mark ap_id unique_constraint
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/user.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 29d2b3d89..c2ca58fb9 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -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 |