diff options
author | Ivan Tashkinov <ivant.business@gmail.com> | 2019-06-30 16:05:00 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivant.business@gmail.com> | 2019-06-30 16:05:00 +0300 |
commit | a7994185739522dee80e22f76e5fdac1a3b8279b (patch) | |
tree | c5f49b92cf32abe44c7571aae5531bf5308ba17b /test/web/common_api/common_api_test.exs | |
parent | 2b9d914089755297f6ac24ffbb81934cf3c70cdd (diff) | |
parent | 66380d36d540751f59445c8a65e9747ce5475ee5 (diff) | |
download | pleroma-a7994185739522dee80e22f76e5fdac1a3b8279b.tar.gz |
[#161] Merge remote-tracking branch 'remotes/upstream/develop' into 161-incoming-replies-depth-limit
# Conflicts:
# CHANGELOG.md
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r-- | test/web/common_api/common_api_test.exs | 5 |
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) |