Merge branch 'nil-contentMap' into 'develop'
Support objects with a nil contentMap (firefish) Closes #3231 See merge request pleroma/pleroma!4030
This commit is contained in:
commit
d3a4f5b7d7
3 changed files with 18 additions and 0 deletions
|
|
@ -339,6 +339,10 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
|
|||
|
||||
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.
|
||||
def fix_content_map(%{"contentMap" => content_map} = object) do
|
||||
content_groups = Map.to_list(content_map)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue