turn the inner map into an object too

This commit is contained in:
Charlotte 🦝 Delenk 2022-09-10 16:39:40 +01:00
parent d6b74f47ab
commit 723a64ef9d
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -499,10 +499,10 @@ index 000000000..1b1e439e0
+end
diff --git a/lib/mix/tasks/migrator/import/statuses.ex b/lib/mix/tasks/migrator/import/statuses.ex
new file mode 100644
index 000000000..e96aa2f3c
index 000000000..9d4c46bef
--- /dev/null
+++ b/lib/mix/tasks/migrator/import/statuses.ex
@@ -0,0 +1,23 @@
@@ -0,0 +1,24 @@
+defmodule Mix.Tasks.Pleroma.Migrator.Import.Statuses do
+ use Mix.Task
+ import Mix.Pleroma
@ -519,6 +519,7 @@ index 000000000..e96aa2f3c
+ params =
+ Jason.decode!(line)
+ |> keys_to_atoms
+ |> loop_fields([:object], &keys_to_atoms/1)
+ |> loop_fields([:inserted_at, :updated_at], &parse_timestamp/1)
+ |> Map.delete(:id)
+