1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-12-28 20:55:39 +01:00

Merge branch 'bugfix/rich-media-nil' into 'develop'

html: don't attempt to parse nil content

See merge request pleroma/pleroma!775
This commit is contained in:
lambda 2019-02-05 11:28:48 +00:00
commit 8892f4468c

View File

@ -59,6 +59,8 @@ defmodule Pleroma.HTML do
end)
end
def extract_first_external_url(_, nil), do: {:error, "No content"}
def extract_first_external_url(object, content) do
key = "URL|#{object.id}"