Merge branch 'bugfix-ccworks' into 'develop'

Bugfix for ccworks AP bridge

Closes #3234

See merge request pleroma/pleroma!4043
This commit is contained in:
Haelwenn 2024-02-15 01:30:22 +00:00
commit d19642d7eb
7 changed files with 52 additions and 5 deletions

View file

@ -336,10 +336,6 @@ 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)