summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2019-02-05 11:28:48 +0000
committerlambda <pleromagit@rogerbraun.net>2019-02-05 11:28:48 +0000
commit8892f4468c474f169039977b62af1b524a413bf5 (patch)
tree95014dfc5712d4cc75ff4b5e3aa670847f47b178
parent03991e7bc5c6309739d8e936ce312a68d9e73b5a (diff)
parenta2bb5d890d95062e146a4ec6f5923d77ac44a1b9 (diff)
downloadpleroma-8892f4468c474f169039977b62af1b524a413bf5.tar.gz
pleroma-8892f4468c474f169039977b62af1b524a413bf5.zip
Merge branch 'bugfix/rich-media-nil' into 'develop'
html: don't attempt to parse nil content See merge request pleroma/pleroma!775
-rw-r--r--lib/pleroma/html.ex2
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}"