mastodon api: provider_name setting is required too on the card
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 26 Jan 2019 14:47:32 +0000 (14:47 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sat, 26 Jan 2019 14:47:32 +0000 (14:47 +0000)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex

index 9d3fa532d758644253eb8e0cb8af4152600cb8c7..91cc76fe783c8709d5b7387eb5dab9d31dc37e13 100644 (file)
@@ -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