summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2022-01-26 11:49:31 -0600
committertusooa <tusooa@kazv.moe>2023-09-13 19:19:04 -0400
commit6f11f11519f9c735f6b059c250f4bf01e09b305f (patch)
treeaa9491d11ff486fbe50ca9ed8ec989bf6b8b826d /lib
parent59326247aa754991add9170e204257a8bf94c40f (diff)
downloadpleroma-6f11f11519f9c735f6b059c250f4bf01e09b305f.tar.gz
pleroma-6f11f11519f9c735f6b059c250f4bf01e09b305f.zip
StatusView: fix quote visibility
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/status_view.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex
index 06adfb221..7360d1093 100644
--- a/lib/pleroma/web/mastodon_api/views/status_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/status_view.ex
@@ -315,7 +315,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
quote_activity = get_quote(activity, opts)
quote_post =
- if quote_activity do
+ if visible_for_user?(quote_activity, opts[:for]) do
quote_rendering_opts = Map.merge(opts, %{activity: quote_activity, show_quote: false})
render("show.json", quote_rendering_opts)
else