Mix format
This commit is contained in:
parent
394174c0a9
commit
34601065c3
1 changed files with 6 additions and 5 deletions
|
@ -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 ->
|
||||||
|
|
Loading…
Reference in a new issue