+ defp fix_replies(%{"replies" => %{"first" => first}} = data) do
+ with {:ok, %{"orderedItems" => replies}} <-
+ Fetcher.fetch_and_contain_remote_object_from_id(first) do
+ Map.put(data, "replies", replies)
+ else
+ {:error, _} ->
+ Logger.error("Could not fetch replies for #{first}")
+ Map.put(data, "replies", [])
+ end
+ end
+