From: William Pitcock Date: Tue, 5 Feb 2019 00:32:49 +0000 (+0000) Subject: activitypub: transmogrifier: fix bare tags X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e71ab5a10fd19c563ff1627ded58c79ae084f016;p=akkoma activitypub: transmogrifier: fix bare tags --- diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 43725c3db..7151efdeb 100644 --- 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.