Include image description in status media cards
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
8eea4f58c7
commit
818d9f7b63
1
changelog.d/card-image-description.add
Normal file
1
changelog.d/card-image-description.add
Normal file
@ -0,0 +1 @@
|
||||
Include image description in status media cards
|
@ -58,6 +58,10 @@ defmodule Pleroma.Web.ApiSpec.Schemas.Status do
|
||||
format: :uri,
|
||||
description: "Preview thumbnail"
|
||||
},
|
||||
image_description: %Schema{
|
||||
type: :string,
|
||||
description: "Alternate text that describes what is in the thumbnail"
|
||||
},
|
||||
title: %Schema{type: :string, description: "Title of linked resource"},
|
||||
description: %Schema{type: :string, description: "Description of preview"}
|
||||
}
|
||||
|
@ -583,6 +583,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
||||
provider_url: page_url_data.scheme <> "://" <> page_url_data.host,
|
||||
url: page_url,
|
||||
image: image_url,
|
||||
image_description: rich_media["image:alt"] || "",
|
||||
title: rich_media["title"] || "",
|
||||
description: rich_media["description"] || "",
|
||||
pleroma: %{
|
||||
|
Loading…
Reference in New Issue
Block a user