From: William Pitcock Date: Tue, 5 Feb 2019 05:06:17 +0000 (+0000) Subject: html: don't attempt to parse nil content X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a2bb5d890d95062e146a4ec6f5923d77ac44a1b9;p=akkoma html: don't attempt to parse nil content --- 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}"