Replace missing non-nullable Card attributes with empty strings
This commit is contained in:
parent
91ac8b075b
commit
1690be991e
8 changed files with 87 additions and 23 deletions
|
|
@ -290,8 +290,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
|||
provider_url: page_url_data.scheme <> "://" <> page_url_data.host,
|
||||
url: page_url,
|
||||
image: image_url |> MediaProxy.url(),
|
||||
title: rich_media[:title],
|
||||
description: rich_media[:description],
|
||||
title: rich_media[:title] || "",
|
||||
description: rich_media[:description] || "",
|
||||
pleroma: %{
|
||||
opengraph: rich_media
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue