html: don't attempt to parse nil content
This commit is contained in:
parent
03991e7bc5
commit
a2bb5d890d
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,8 @@ defmodule Pleroma.HTML do
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def extract_first_external_url(_, nil), do: {:error, "No content"}
|
||||||
|
|
||||||
def extract_first_external_url(object, content) do
|
def extract_first_external_url(object, content) do
|
||||||
key = "URL|#{object.id}"
|
key = "URL|#{object.id}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue