X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fhtml.ex;h=b4a4742ee30c39699e0ecaf079a8226415ead5f3;hb=09b71a9053fe66ba8f4fca940f22eaffbf4af215;hp=bf5daa9482bdb1da279502b5a8c5b937f805d5fc;hpb=ebb3496386c1e195b48bcdc9d72c4c30e60fe340;p=akkoma 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}"