diff options
author | William Pitcock <nenolod@dereferenced.org> | 2019-01-28 06:42:27 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2019-01-28 06:42:27 +0000 |
commit | ddc7ae2c1a4e21c5e89a283951ba53e7ab6322ad (patch) | |
tree | 9331c8cee4d267bcf10968808856ac655afd1151 | |
parent | 339c26e12ba7312d283191196888ca7a5ce81dfe (diff) | |
download | pleroma-ddc7ae2c1a4e21c5e89a283951ba53e7ab6322ad.tar.gz pleroma-ddc7ae2c1a4e21c5e89a283951ba53e7ab6322ad.zip |
mastodon api: card: force OGP images through mediaproxy
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/status_view.ex | 2 |
1 files changed, 1 insertions, 1 deletions
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: %{ |