Skip to content
Snippets Groups Projects
Commit ff1baae7 authored by Ivan Tashkinov's avatar Ivan Tashkinov
Browse files

Merge remote-tracking branch 'remotes/origin/develop' into...

Merge remote-tracking branch 'remotes/origin/develop' into relations-preloading-for-statuses-rendering
parents 460e4158 d96139f7
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,18 @@ test "updates the user's hide_followers status", %{conn: conn} do
assert user_data["pleroma"]["hide_followers"] == true
end
test "updates the user's discoverable status", %{conn: conn} do
assert %{"source" => %{"pleroma" => %{"discoverable" => true}}} =
conn
|> patch("/api/v1/accounts/update_credentials", %{discoverable: "true"})
|> json_response(:ok)
assert %{"source" => %{"pleroma" => %{"discoverable" => false}}} =
conn
|> patch("/api/v1/accounts/update_credentials", %{discoverable: "false"})
|> json_response(:ok)
end
test "updates the user's hide_followers_count and hide_follows_count", %{conn: conn} do
conn =
patch(conn, "/api/v1/accounts/update_credentials", %{
......
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