From 78047d57bf52e53c5f073435928983922f9538f5 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 26 Jan 2019 14:47:32 +0000 Subject: [PATCH] mastodon api: provider_name setting is required too on the card --- lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index 9d3fa532d..91cc76fe7 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -1337,6 +1337,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do rich_media |> Map.take([:image, :title, :url, :description]) |> Map.put(:type, "link") + |> Map.put(:provider_name, rich_media.site_name) else _ -> %{} end -- 2.45.2