diff options
author | kaniini <ariadne@dereferenced.org> | 2019-07-15 13:00:33 +0000 |
---|---|---|
committer | kaniini <ariadne@dereferenced.org> | 2019-07-15 13:00:33 +0000 |
commit | d725ccfd3adce35c91c9d55414f47022bf0d67ed (patch) | |
tree | 38361610903bd6034f6a66dcd9e747e187d328d9 /test/web/mastodon_api | |
parent | 46ef8f021635c630bcd6973e6fbb7c58bcafb6bf (diff) | |
parent | de13c9bb8fc08b12d9694f63f92935ba39a51118 (diff) | |
download | pleroma-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.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 |