summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoreugenijm <eugenijm@protonmail.com>2020-09-15 13:00:07 +0300
committereugenijm <eugenijm@protonmail.com>2020-09-15 13:00:56 +0300
commit3ab59a6f3c7b7bae2e69d1a8d1bf484d039a5420 (patch)
tree5cda1c97243a93a32cf1282608a6d196b4272c29 /test
parent5c4ff5c73ce41f252e99a3c5c445efcecaa43dfe (diff)
downloadpleroma-3ab59a6f3c7b7bae2e69d1a8d1bf484d039a5420.tar.gz
pleroma-3ab59a6f3c7b7bae2e69d1a8d1bf484d039a5420.zip
Mastodon API: fix the public timeline returning an error when the `reply_visibility` parameter is set to `self` for an unauthenticated user
Diffstat (limited to 'test')
-rw-r--r--test/web/activity_pub/activity_pub_test.exs8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs
index d8caa0b00..7bdad3810 100644
--- a/test/web/activity_pub/activity_pub_test.exs
+++ b/test/web/activity_pub/activity_pub_test.exs
@@ -1810,6 +1810,14 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
|> Enum.map(& &1.id)
assert activities_ids == []
+
+ activities_ids =
+ %{}
+ |> Map.put(:reply_visibility, "self")
+ |> Map.put(:reply_filtering_user, nil)
+ |> ActivityPub.fetch_public_activities()
+
+ assert activities_ids == []
end
test "home timeline", %{users: %{u1: user}} do