User: Don't allow local users in remote changesets
This commit is contained in:
parent
c10783087f
commit
a32e13e6c4
2 changed files with 20 additions and 0 deletions
|
|
@ -877,6 +877,13 @@ defmodule Pleroma.UserTest do
|
|||
refute cs.valid?
|
||||
end)
|
||||
end
|
||||
|
||||
test "it is invalid given a local user" do
|
||||
user = insert(:user)
|
||||
cs = User.remote_user_changeset(user, %{name: "tom from myspace"})
|
||||
|
||||
refute cs.valid?
|
||||
end
|
||||
end
|
||||
|
||||
describe "followers and friends" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue