Skip to content
Snippets Groups Projects
Commit 8892f446 authored by lain's avatar lain
Browse files

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
No related branches found
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.
Finish editing this message first!
Please register or to comment