This commit is contained in:
Maksim Pechnikov 2018-12-10 09:39:57 +03:00
commit e94c3442f4
8 changed files with 31 additions and 27 deletions

View file

@ -57,7 +57,7 @@ defmodule Mix.Tasks.Pleroma.Uploads do
File.exists?(root_path) ->
file = Path.basename(id)
[hash, _ext] = String.split(id, ".")
hash = Path.rootname(id)
{%Pleroma.Upload{id: hash, name: file, path: file, tempfile: root_path}, root_path}
true ->