Replace missing non-nullable Card attributes with empty strings
According to Mastodon API docs the Card entity has 4 non-nullable attributes:
-
url
(always a page url) -
title
(we validate it right in thePleroma.Web.RichMedia.Parser
check_parsed_data/1
function) -
type
(always "link") description
In this MR I replace title
and description
with empty strings if they are missing.
Edited by Sergey Suprunenko