commit: 63cbc1208d2654ed174f7d319334aca3e08f69d7
parent 59d17a5b20bac485c189bcfdeafffe7fb06c8277
Author: Phantasm <phantasm@centrum.cz>
Date: Mon, 12 May 2025 17:25:38 +0200
Elixir 1.18 Replace Tuple.append/2 with Tuple.insert_at/3
warning: Tuple.append/2 is deprecated. Use insert_at instead
│
305 │ Enum.reduce(entity, {}, &Tuple.append(&2, to_elixir_types(&1)))
│ ~
│
└─ lib/pleroma/config_db.ex:305:36: Pleroma.ConfigDB.to_elixir_types/1
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/pleroma/config_db.ex b/lib/pleroma/config_db.ex
@@ -302,7 +302,7 @@ defmodule Pleroma.ConfigDB do
end
def to_elixir_types(%{"tuple" => entity}) do
- Enum.reduce(entity, {}, &Tuple.append(&2, to_elixir_types(&1)))
+ Enum.reduce(entity, {}, &Tuple.insert_at(&2, tuple_size(&2), to_elixir_types(&1)))
end
def to_elixir_types(entity) when is_map(entity) do