summaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_test.exs
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2019-06-30 21:23:35 +0300
committerRoman Chvanikov <chvanikoff@pm.me>2019-06-30 21:23:35 +0300
commitd2cb18b2a342b990cc47dfdc42adb843c3db1b5e (patch)
tree2982108b486fe8361fba5f22c53491bb265924b4 /test/web/common_api/common_api_test.exs
parent657277ffc0d3d25be4376ed629057a2d2cefb2e1 (diff)
parent66380d36d540751f59445c8a65e9747ce5475ee5 (diff)
downloadpleroma-d2cb18b2a342b990cc47dfdc42adb843c3db1b5e.tar.gz
pleroma-d2cb18b2a342b990cc47dfdc42adb843c3db1b5e.zip
Merge branch 'develop' into feature/digest-email
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r--test/web/common_api/common_api_test.exs5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs
index e96106f11..6f57bbe1f 100644
--- a/test/web/common_api/common_api_test.exs
+++ b/test/web/common_api/common_api_test.exs
@@ -188,6 +188,11 @@ defmodule Pleroma.Web.CommonAPITest do
assert %User{info: %{pinned_activities: [^id]}} = user
end
+ test "unlisted statuses can be pinned", %{user: user} do
+ {:ok, activity} = CommonAPI.post(user, %{"status" => "HI!!!", "visibility" => "unlisted"})
+ assert {:ok, ^activity} = CommonAPI.pin(activity.id, user)
+ end
+
test "only self-authored can be pinned", %{activity: activity} do
user = insert(:user)