From 2858fd2da217e172dcc0f664f21bfc8d81dce452 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Tue, 15 Jan 2019 12:11:07 +0300 Subject: [PATCH] add a fallback function --- lib/pleroma/web/metadata.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/web/metadata.ex b/lib/pleroma/web/metadata.ex index b7052eec1..8591db6b5 100644 --- a/lib/pleroma/web/metadata.ex +++ b/lib/pleroma/web/metadata.ex @@ -57,7 +57,9 @@ defmodule Pleroma.Web.Metadata do ] end end - + defp opengraph_tags(_) do + [] + end def to_tag(data) do with {name, attrs, _content = []} <- data do HTML.Tag.tag(name, attrs) -- 2.45.2