Also pretty print pack.json
authorEkaterina Vaartis <vaartis@cock.li>
Mon, 23 Sep 2019 21:37:27 +0000 (00:37 +0300)
committerEkaterina Vaartis <vaartis@cock.li>
Mon, 23 Sep 2019 21:37:27 +0000 (00:37 +0300)
lib/pleroma/web/pleroma_api/controllers/emoji_api_controller.ex

index 6beca426ace1438ccb8f1664948eec50cbd35192..3ad29bd383907885704b819ffb28b58c9d2ae919 100644 (file)
@@ -242,7 +242,7 @@ keeping it in cache for #{div(cache_ms, 1000)}s")
 
       File.write!(
         pack_file_p,
-        Jason.encode!(%{pack: %{}, files: %{}})
+        Jason.encode!(%{pack: %{}, files: %{}}, pretty: true)
       )
 
       conn |> json("ok")