From 723a64ef9d675a7e75448a378e07bdf4911e1262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 10 Sep 2022 16:39:40 +0100 Subject: [PATCH] turn the inner map into an object too --- akkoma/akkoma.patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/akkoma/akkoma.patch b/akkoma/akkoma.patch index e18fa13..1fa9d70 100644 --- a/akkoma/akkoma.patch +++ b/akkoma/akkoma.patch @@ -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) +