mastodon api: card: force OGP images through mediaproxy
This commit is contained in:
parent
339c26e12b
commit
ddc7ae2c1a
|
@ -189,7 +189,7 @@ def render("card.json", %{rich_media: rich_media, page_url: page_url}) do
|
|||
provider_name: site_name,
|
||||
provider_url: page_url_data.scheme <> "://" <> page_url_data.host,
|
||||
url: page_url,
|
||||
image: rich_media[:image],
|
||||
image: rich_media[:image] |> MediaProxy.url(),
|
||||
title: rich_media[:title],
|
||||
description: rich_media[:description],
|
||||
pleroma: %{
|
||||
|
|
Loading…
Reference in a new issue