diff options
author | eugenijm <eugenijm@protonmail.com> | 2020-09-15 13:00:07 +0300 |
---|---|---|
committer | eugenijm <eugenijm@protonmail.com> | 2020-09-15 13:00:56 +0300 |
commit | 3ab59a6f3c7b7bae2e69d1a8d1bf484d039a5420 (patch) | |
tree | 5cda1c97243a93a32cf1282608a6d196b4272c29 /lib | |
parent | 5c4ff5c73ce41f252e99a3c5c445efcecaa43dfe (diff) | |
download | pleroma-3ab59a6f3c7b7bae2e69d1a8d1bf484d039a5420.tar.gz |
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 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 66a9f78a3..5aac3f53b 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -767,7 +767,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do end defp restrict_replies(query, %{ - reply_filtering_user: user, + reply_filtering_user: %User{} = user, reply_visibility: "self" }) do from( @@ -783,7 +783,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do end defp restrict_replies(query, %{ - reply_filtering_user: user, + reply_filtering_user: %User{} = user, reply_visibility: "following" }) do from( |