diff options
author | William Pitcock <nenolod@dereferenced.org> | 2019-02-05 05:06:17 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2019-02-05 05:06:17 +0000 |
commit | a2bb5d890d95062e146a4ec6f5923d77ac44a1b9 (patch) | |
tree | 95014dfc5712d4cc75ff4b5e3aa670847f47b178 | |
parent | 03991e7bc5c6309739d8e936ce312a68d9e73b5a (diff) | |
download | pleroma-a2bb5d890d95062e146a4ec6f5923d77ac44a1b9.tar.gz |
html: don't attempt to parse nil content
-rw-r--r-- | lib/pleroma/html.ex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/html.ex b/lib/pleroma/html.ex index bf5daa948..b4a4742ee 100644 --- a/lib/pleroma/html.ex +++ b/lib/pleroma/html.ex @@ -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}" |