From: William Pitcock Date: Mon, 28 Jan 2019 06:42:27 +0000 (+0000) Subject: mastodon api: card: force OGP images through mediaproxy X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=ddc7ae2c1a4e21c5e89a283951ba53e7ab6322ad;p=akkoma mastodon api: card: force OGP images through mediaproxy --- 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 @@ defmodule Pleroma.Web.MastodonAPI.StatusView 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: %{