1
0
Fork 0
mirror of https://git.pleroma.social/pleroma/pleroma.git synced 2025-03-30 07:15:28 +00:00

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 @@ defmodule Pleroma.Upload do
end
_ ->
public_endpoint || upload_base_url
public_endpoint || upload_base_url || Pleroma.Web.base_url() <> "/media/"
end
end
end