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/common_api/common_api_test.exs | |
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/common_api/common_api_test.exs')
-rw-r--r-- | test/web/common_api/common_api_test.exs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs index b59b6cbf6..7d8eeb12e 100644 --- a/test/web/common_api/common_api_test.exs +++ b/test/web/common_api/common_api_test.exs @@ -129,6 +129,18 @@ defmodule Pleroma.Web.CommonAPITest do }) end) end + + test "it allows to address a list" do + user = insert(:user) + {:ok, list} = Pleroma.List.create("foo", user) + + {:ok, activity} = + CommonAPI.post(user, %{"status" => "foobar", "visibility" => "list:#{list.id}"}) + + assert activity.data["bcc"] == [list.ap_id] + assert activity.recipients == [list.ap_id, user.ap_id] + assert activity.data["listMessage"] == list.ap_id + end end describe "reactions" do |