Commit ddc7ae2c authored by kaniini's avatar kaniini
Browse files

mastodon api: card: force OGP images through mediaproxy

parent 339c26e1
Pipeline #6682 passed with stages
in 3 minutes and 21 seconds
......@@ -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 <> "://" <>,
url: page_url,
image: rich_media[:image],
image: rich_media[:image] |> MediaProxy.url(),
title: rich_media[:title],
description: rich_media[:description],
pleroma: %{
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment