Commit 8892f446 authored by lain's avatar lain

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

html: don't attempt to parse nil content

See merge request pleroma/pleroma!775
parents 03991e7b a2bb5d89
Pipeline #7084 failed with stages
in 2 minutes and 30 seconds
......@@ -59,6 +59,8 @@ defp generate_scrubber_signature(scrubbers) 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}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment