Commit f8b831ec authored by lain's avatar lain

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

activitypub: transmogrifier: fix bare tags

See merge request !774
parents 040ab352 e71ab5a1
Pipeline #7086 passed with stages
in 5 minutes and 27 seconds
...@@ -313,6 +313,8 @@ def fix_tag(%{"tag" => %{"type" => "Hashtag", "name" => hashtag} = tag} = object ...@@ -313,6 +313,8 @@ def fix_tag(%{"tag" => %{"type" => "Hashtag", "name" => hashtag} = tag} = object
|> Map.put("tag", combined) |> Map.put("tag", combined)
end end
def fix_tag(%{"tag" => %{} = tag} = object), do: Map.put(object, "tag", [tag])
def fix_tag(object), do: object def fix_tag(object), do: object
# content map usually only has one language so this will do for now. # 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