From: Egor Kislitsyn Date: Sat, 26 Sep 2020 17:53:04 +0000 (+0400) Subject: Use to_string/1 instead of :binary.list_to_bin/1 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=8545d533ddee2978e9bf7f3284cc7dcb822a77e6;p=akkoma Use to_string/1 instead of :binary.list_to_bin/1 --- diff --git a/lib/pleroma/backup.ex b/lib/pleroma/backup.ex index cee51d7c1..629e879a7 100644 --- a/lib/pleroma/backup.ex +++ b/lib/pleroma/backup.ex @@ -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