mastodon api: provider_name setting is required too on the card
This commit is contained in:
parent
39863236eb
commit
78047d57bf
@ -1337,6 +1337,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
|
|||||||
rich_media
|
rich_media
|
||||||
|> Map.take([:image, :title, :url, :description])
|
|> Map.take([:image, :title, :url, :description])
|
||||||
|> Map.put(:type, "link")
|
|> Map.put(:type, "link")
|
||||||
|
|> Map.put(:provider_name, rich_media.site_name)
|
||||||
else
|
else
|
||||||
_ -> %{}
|
_ -> %{}
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user