summaryrefslogtreecommitdiff
path: root/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-11-11 18:47:57 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-11-11 18:54:01 +0400
commit0118ccb53cd1f33cb91b28fc7f5b6378f2424ffc (patch)
tree62c5972b7dfa4732c36d1bc0e9948287d6eae084 /test/pleroma/web/mastodon_api/controllers/status_controller_test.exs
parentc7bcbfbc1d5d34463634e44979a77a2c47e35dbc (diff)
Add `local` visibility
Diffstat (limited to 'test/pleroma/web/mastodon_api/controllers/status_controller_test.exs')
-rw-r--r--test/pleroma/web/mastodon_api/controllers/status_controller_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs b/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs
index ddddd0ea0..d95200f99 100644
--- a/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs
+++ b/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs
@@ -1749,12 +1749,12 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
|> put_req_header("content-type", "application/json")
|> post("/api/v1/statuses", %{
"status" => "cofe",
- "local_only" => "true"
+ "visibility" => "local"
})
local = Pleroma.Constants.as_local_public()
- assert %{"content" => "cofe", "id" => id, "pleroma" => %{"local_only" => true}} =
+ assert %{"content" => "cofe", "id" => id, "visibility" => "local"} =
json_response(conn_one, 200)
assert %Activity{id: ^id, data: %{"to" => [^local]}} = Activity.get_by_id(id)