Provide a non-nil fallback for Upload.base_url/0 for tests using TestUploaderSuccess...
authorMark Felder <feld@feld.me>
Tue, 12 Jan 2021 22:34:24 +0000 (16:34 -0600)
committerMark Felder <feld@feld.me>
Tue, 12 Jan 2021 22:34:24 +0000 (16:34 -0600)
lib/pleroma/upload.ex

index 619a85e93f216483425916d89656a497064d2425..e714dc57b6f046c965e188fe95d6e955c21a41bd 100644 (file)
@@ -249,7 +249,7 @@ defmodule Pleroma.Upload do
         end
 
       _ ->
-        public_endpoint || upload_base_url
+        public_endpoint || upload_base_url || Pleroma.Web.base_url() <> "/media/"
     end
   end
 end