Provide a non-nil fallback for Upload.base_url/0 for tests using TestUploaderSuccess as the uploader

This commit is contained in:
Mark Felder 2021-01-12 16:34:24 -06:00
parent 12528edc34
commit c35e6fb516

View file

@ -249,7 +249,7 @@ def base_url do
end
_ ->
public_endpoint || upload_base_url
public_endpoint || upload_base_url || Pleroma.Web.base_url() <> "/media/"
end
end
end