Mix format
ci/woodpecker/push/build-amd64 Pipeline is pending Details
ci/woodpecker/push/build-arm64 Pipeline is pending Details
ci/woodpecker/push/docs Pipeline is pending Details
ci/woodpecker/push/test Pipeline is pending Details
ci/woodpecker/pr/test Pipeline failed Details
ci/woodpecker/pr/build-arm64 unknown status Details
ci/woodpecker/pr/build-amd64 unknown status Details
ci/woodpecker/pr/docs unknown status Details

This commit is contained in:
FloatingGhost 2023-07-20 17:34:05 +01:00
parent 394174c0a9
commit 34601065c3
1 changed files with 6 additions and 5 deletions

View File

@ -919,11 +919,12 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
end end
def prepare_attachments(object) do def prepare_attachments(object) do
attachments = case Map.get(object, "attachment", []) do attachments =
[_ | _] = list -> list case Map.get(object, "attachment", []) do
_ -> [] [_ | _] = list -> list
end _ -> []
end
attachments = attachments =
attachments attachments
|> Enum.map(fn data -> |> Enum.map(fn data ->