mastodon api: card: force OGP images through mediaproxy
authorWilliam Pitcock <nenolod@dereferenced.org>
Mon, 28 Jan 2019 06:42:27 +0000 (06:42 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Mon, 28 Jan 2019 06:42:27 +0000 (06:42 +0000)
lib/pleroma/web/mastodon_api/views/status_view.ex

index 68df1623e7eb0d87f7a98b797ae46456a73ddb23..d3e30b656df939ad7b7687a298010a0ab523198c 100644 (file)
@@ -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: %{