Skip to content
Snippets Groups Projects
Commit f8b831ec authored by lain's avatar lain
Browse files

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

activitypub: transmogrifier: fix bare tags

See merge request pleroma/pleroma!774
parents 040ab352 e71ab5a1
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment