Fix base_url string trimming
This commit is contained in:
parent
dea968463d
commit
804a702f97
@ -75,7 +75,11 @@ def perform(
|
||||
_ -> ""
|
||||
end
|
||||
|
||||
base_url = Pleroma.Config.get([Pleroma.Upload, :base_url], Pleroma.Web.base_url())
|
||||
base_url =
|
||||
String.trim_trailing(
|
||||
Pleroma.Config.get([Pleroma.Upload, :base_url], Pleroma.Web.base_url()),
|
||||
"/"
|
||||
)
|
||||
|
||||
file_path = String.trim_leading(href, "#{base_url}/#{prefix}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user