From: rinpatch Date: Tue, 19 Feb 2019 10:52:15 +0000 (+0300) Subject: mark ap_id unique_constraint X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=109b01a6318e01566a3a148c9c9ecd0313546f5f;p=akkoma mark ap_id unique_constraint --- 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