Use to_string/1 instead of :binary.list_to_bin/1
authorEgor Kislitsyn <egor@kislitsyn.com>
Sat, 26 Sep 2020 17:53:04 +0000 (21:53 +0400)
committerEgor Kislitsyn <egor@kislitsyn.com>
Wed, 7 Oct 2020 14:35:29 +0000 (18:35 +0400)
lib/pleroma/backup.ex

index cee51d7c160993291f9025ba99905f17e5218568..629e879a7aa3881d8ea569d5978d9a979ccb3a30 100644 (file)
@@ -148,7 +148,7 @@ defmodule Pleroma.Backup do
          :ok <- bookmarks(dir, backup.user),
          {:ok, zip_path} <- :zip.create(String.to_charlist(dir <> ".zip"), @files, cwd: dir),
          {:ok, _} <- File.rm_rf(dir) do
-      {:ok, :binary.list_to_bin(zip_path)}
+      {:ok, to_string(zip_path)}
     end
   end