diff options
author | kaniini <ariadne@dereferenced.org> | 2019-10-02 07:02:24 +0000 |
---|---|---|
committer | kaniini <ariadne@dereferenced.org> | 2019-10-02 07:02:24 +0000 |
commit | 9b38bf4af47f65ecef92ef69f0a5541e4b21902d (patch) | |
tree | aa65160c9d3627ffe6d1f021dba41c573692f823 /test/web/common_api/common_api_test.exs | |
parent | 5eab6561d87f43e8f2f5e4afc93808ece8ead84c (diff) | |
parent | 427d0c2a007db6c8424c64a8f3504420e5203bef (diff) | |
download | pleroma-9b38bf4af47f65ecef92ef69f0a5541e4b21902d.tar.gz pleroma-9b38bf4af47f65ecef92ef69f0a5541e4b21902d.zip |
Merge branch 'features/private-reblogs' into 'develop'
Allow receiving private self-announces over ActivityPub
See merge request pleroma/pleroma!1766
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 0f4a5eb25..2d3c41e82 100644 --- a/test/web/common_api/common_api_test.exs +++ b/test/web/common_api/common_api_test.exs @@ -231,6 +231,18 @@ defmodule Pleroma.Web.CommonAPITest do {:ok, %Activity{}, _} = CommonAPI.repeat(activity.id, user) end + test "repeating a status privately" do + user = insert(:user) + other_user = insert(:user) + + {:ok, activity} = CommonAPI.post(other_user, %{"status" => "cofe"}) + + {:ok, %Activity{} = announce_activity, _} = + CommonAPI.repeat(activity.id, user, %{"visibility" => "private"}) + + assert Visibility.is_private?(announce_activity) + end + test "favoriting a status" do user = insert(:user) other_user = insert(:user) |