summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api
diff options
context:
space:
mode:
authorkaniini <ariadne@dereferenced.org>2019-07-15 13:00:33 +0000
committerkaniini <ariadne@dereferenced.org>2019-07-15 13:00:33 +0000
commitd725ccfd3adce35c91c9d55414f47022bf0d67ed (patch)
tree38361610903bd6034f6a66dcd9e747e187d328d9 /test/web/mastodon_api
parent46ef8f021635c630bcd6973e6fbb7c58bcafb6bf (diff)
parentde13c9bb8fc08b12d9694f63f92935ba39a51118 (diff)
downloadpleroma-d725ccfd3adce35c91c9d55414f47022bf0d67ed.tar.gz
pleroma-d725ccfd3adce35c91c9d55414f47022bf0d67ed.zip
Merge branch 'feature/addressable-lists' into 'develop'
[#802] Add addressable lists See merge request pleroma/pleroma!1113
Diffstat (limited to 'test/web/mastodon_api')
-rw-r--r--test/web/mastodon_api/status_view_test.exs13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs
index ac42819d8..995bd52c8 100644
--- a/test/web/mastodon_api/status_view_test.exs
+++ b/test/web/mastodon_api/status_view_test.exs
@@ -541,4 +541,17 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
assert result[:reblog][:account][:pleroma][:relationship] ==
AccountView.render("relationship.json", %{user: user, target: user})
end
+
+ test "visibility/list" do
+ user = insert(:user)
+
+ {:ok, list} = Pleroma.List.create("foo", user)
+
+ {:ok, activity} =
+ CommonAPI.post(user, %{"status" => "foobar", "visibility" => "list:#{list.id}"})
+
+ status = StatusView.render("status.json", activity: activity)
+
+ assert status.visibility == "list"
+ end
end