StatusView: fix quote visibility
This commit is contained in:
parent
59326247aa
commit
6f11f11519
2 changed files with 42 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue