StatusView: fix quote visibility

This commit is contained in:
Alex Gleason 2022-01-26 11:49:31 -06:00 committed by tusooa
commit 6f11f11519
No known key found for this signature in database
GPG key ID: 42AEC43D48433C51
2 changed files with 42 additions and 1 deletions

View file

@ -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