From ddc7ae2c1a4e21c5e89a283951ba53e7ab6322ad Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 28 Jan 2019 06:42:27 +0000 Subject: [PATCH] mastodon api: card: force OGP images through mediaproxy --- lib/pleroma/web/mastodon_api/views/status_view.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index 68df1623e..d3e30b656 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -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: %{