Merge branch 'reserve-user-names' into 'develop'
Reserve a few user names See merge request pleroma/pleroma!594
This commit is contained in:
commit
cff0292d4b
5 changed files with 61 additions and 3 deletions
|
|
@ -19,6 +19,17 @@ defmodule Pleroma.Web.NodeInfoTest do
|
|||
assert user.ap_id in result["metadata"]["staffAccounts"]
|
||||
end
|
||||
|
||||
test "nodeinfo shows restricted nicknames", %{conn: conn} do
|
||||
conn =
|
||||
conn
|
||||
|> get("/nodeinfo/2.0.json")
|
||||
|
||||
assert result = json_response(conn, 200)
|
||||
|
||||
assert Pleroma.Config.get([Pleroma.User, :restricted_nicknames]) ==
|
||||
result["metadata"]["restrictedNicknames"]
|
||||
end
|
||||
|
||||
test "returns 404 when federation is disabled", %{conn: conn} do
|
||||
instance =
|
||||
Application.get_env(:pleroma, :instance)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue