diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-07-15 14:00:29 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-07-15 14:00:29 +0700 |
commit | a87c313309b73ced5970c59d00117c357f51fecb (patch) | |
tree | c6d587fbfd40db807c85c5326320e9c87017dce4 /test | |
parent | 9991254c064c63e3d45786379953414c8a26073a (diff) | |
download | pleroma-a87c313309b73ced5970c59d00117c357f51fecb.tar.gz |
Support `list` visibility in StatusView
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/status_view_test.exs | 13 |
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 |