Skip to content
Snippets Groups Projects
Commit a2bb5d89 authored by kaniini's avatar kaniini
Browse files

html: don't attempt to parse nil content

parent 03991e7b
Branches
No related tags found
No related merge requests found
......@@ -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}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment