mastodon api: provider_name setting is required too on the card

This commit is contained in:
William Pitcock 2019-01-26 14:47:32 +00:00
parent 39863236eb
commit 78047d57bf
1 changed files with 1 additions and 0 deletions

View File

@ -1337,6 +1337,7 @@ def get_status_card(status_id) do
rich_media
|> Map.take([:image, :title, :url, :description])
|> Map.put(:type, "link")
|> Map.put(:provider_name, rich_media.site_name)
else
_ -> %{}
end