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

@ -37,7 +37,10 @@ defmodule Pleroma.Web.RichMedia.Parser do
try do
{:ok, %Tesla.Env{body: html}} = Pleroma.HTTP.get(url, [], adapter: @hackney_options)
html |> maybe_parse() |> clean_parsed_data() |> check_parsed_data()
html
|> maybe_parse()
|> clean_parsed_data()
|> check_parsed_data()
rescue
e ->
{:error, "Parsing error: #{inspect(e)}"}