logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: f8b831ecfd7c64c6382fccde7bdc5b0f7183f258
parent: 040ab352a543bdaa7ac4c078db0fc24f0db37d5a
Author: lambda <pleromagit@rogerbraun.net>
Date:   Tue,  5 Feb 2019 11:30:18 +0000

Merge branch 'bugfix/transmogrifier-bare-tags' into 'develop'

activitypub: transmogrifier: fix bare tags

See merge request pleroma/pleroma!774

Diffstat:

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

diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -313,6 +313,8 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do |> Map.put("tag", combined) end + def fix_tag(%{"tag" => %{} = tag} = object), do: Map.put(object, "tag", [tag]) + def fix_tag(object), do: object # content map usually only has one language so this will do for now.