Replace missing non-nullable Card attributes with empty strings

This commit is contained in:
Sergey Suprunenko 2019-05-30 21:03:31 +00:00 committed by feld
commit 1690be991e
8 changed files with 87 additions and 23 deletions

View file

@ -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
}