Commit e71ab5a1 authored by William Pitcock's avatar William Pitcock

activitypub: transmogrifier: fix bare tags

parent 03991e7b
Pipeline #7071 passed with stages
in 6 minutes and 32 seconds
......@@ -313,6 +313,8 @@ def fix_tag(%{"tag" => %{"type" => "Hashtag", "name" => hashtag} = tag} = object
|> 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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment