activitypub: transmogrifier: fix bare tags

This commit is contained in:
William Pitcock 2019-02-05 00:32:49 +00:00
parent 03991e7bc5
commit e71ab5a10f
1 changed files with 2 additions and 0 deletions

View File

@ -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.