mastodon api: card: force OGP images through mediaproxy

This commit is contained in:
William Pitcock 2019-01-28 06:42:27 +00:00
parent 339c26e12b
commit ddc7ae2c1a

View file

@ -189,7 +189,7 @@ def render("card.json", %{rich_media: rich_media, page_url: page_url}) do
provider_name: site_name, provider_name: site_name,
provider_url: page_url_data.scheme <> "://" <> page_url_data.host, provider_url: page_url_data.scheme <> "://" <> page_url_data.host,
url: page_url, url: page_url,
image: rich_media[:image], image: rich_media[:image] |> MediaProxy.url(),
title: rich_media[:title], title: rich_media[:title],
description: rich_media[:description], description: rich_media[:description],
pleroma: %{ pleroma: %{