mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
Transmogrifier: Cleanup obsolete handling of "contentMap": null
This commit is contained in:
parent
558b421079
commit
799891d359
1 changed files with 0 additions and 4 deletions
|
@ -336,10 +336,6 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
|
||||||
|
|
||||||
def fix_tag(object), do: object
|
def fix_tag(object), do: object
|
||||||
|
|
||||||
def fix_content_map(%{"contentMap" => nil} = object) do
|
|
||||||
Map.drop(object, ["contentMap"])
|
|
||||||
end
|
|
||||||
|
|
||||||
# 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.
|
||||||
def fix_content_map(%{"contentMap" => content_map} = object) do
|
def fix_content_map(%{"contentMap" => content_map} = object) do
|
||||||
content_groups = Map.to_list(content_map)
|
content_groups = Map.to_list(content_map)
|
||||||
|
|
Loading…
Reference in a new issue