Skip to content
Snippets Groups Projects
Commit e71ab5a1 authored by kaniini's avatar kaniini
Browse files

activitypub: transmogrifier: fix bare tags

parent 03991e7b
Branches
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.
Please register or to comment