Skip to content
Snippets Groups Projects
Commit 109b01a6 authored by rinpatch's avatar rinpatch
Browse files

mark ap_id unique_constraint

parent 1ce1b7b5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment