use the correct end file
authorTristan Mahé <gled@remote-shell.net>
Tue, 26 Jun 2018 22:09:45 +0000 (15:09 -0700)
committerTristan Mahé <gled@remote-shell.net>
Tue, 26 Jun 2018 22:09:45 +0000 (15:09 -0700)
lib/pleroma/upload.ex

index 45fac90604e7f6d98b247849ad6207c5dd353dfa..dd2bbab9f44625166c29a3ded1e102c214770295 100644 (file)
@@ -18,7 +18,7 @@ defmodule Pleroma.Upload do
       File.cp!(file.path, result_file)
     end
 
-    strip_exif_data(content_type, file.path)
+    strip_exif_data(content_type, result_file)
 
     %{
       "type" => "Image",
@@ -69,7 +69,7 @@ defmodule Pleroma.Upload do
       File.rename(uuidpath, result_file)
     end
 
-    strip_exif_data(content_type, uuidpath)
+    strip_exif_data(content_type, result_file)
 
     %{
       "type" => "Image",