logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: 8892f4468c474f169039977b62af1b524a413bf5
parent: 03991e7bc5c6309739d8e936ce312a68d9e73b5a
Author: lambda <pleromagit@rogerbraun.net>
Date:   Tue,  5 Feb 2019 11:28:48 +0000

Merge branch 'bugfix/rich-media-nil' into 'develop'

html: don't attempt to parse nil content

See merge request pleroma/pleroma!775

Diffstat:

Mlib/pleroma/html.ex2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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}"