diff options
author | lain <lain@soykaf.club> | 2020-09-15 12:21:38 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-09-17 19:49:08 +0300 |
commit | bb70b231d023c6e9f998a6be58f66ae3ff603157 (patch) | |
tree | 3e2bfe4fd507533a11f75bc20387fc228bcbe217 /test | |
parent | 22d49993d9ab35ff5d5276a6a1f4aec96d03b7f3 (diff) | |
download | pleroma-bb70b231d023c6e9f998a6be58f66ae3ff603157.tar.gz pleroma-bb70b231d023c6e9f998a6be58f66ae3ff603157.zip |
Merge branch 'reply-visibility-user-guard' into 'develop'
Mastodon API: fix the public timeline returning an error when the `reply_visibility` parameter is set to `self` for an unauthenticated user
See merge request pleroma/pleroma!2999
Diffstat (limited to 'test')
-rw-r--r-- | test/web/activity_pub/activity_pub_test.exs | 8 |
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 03f968aaf..b579bb0bb 100644 --- a/test/web/activity_pub/activity_pub_test.exs +++ b/test/web/activity_pub/activity_pub_test.exs @@ -1773,6 +1773,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 |