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:
commit
8892f4468c
|
@ -59,6 +59,8 @@ defp generate_scrubber_signature(scrubbers) 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 New Issue