projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08972dd
)
Use to_string/1 instead of :binary.list_to_bin/1
author
Egor Kislitsyn
<egor@kislitsyn.com>
Sat, 26 Sep 2020 17:53:04 +0000
(21:53 +0400)
committer
Egor Kislitsyn
<egor@kislitsyn.com>
Wed, 7 Oct 2020 14:35:29 +0000
(18:35 +0400)
lib/pleroma/backup.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/backup.ex
b/lib/pleroma/backup.ex
index cee51d7c160993291f9025ba99905f17e5218568..629e879a7aa3881d8ea569d5978d9a979ccb3a30 100644
(file)
--- 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