Merge branch 'fix/attachments-cleanup' into 'develop'
Fix attachments cleanup with custom base_url See merge request pleroma/pleroma!2154
This commit is contained in:
commit
d9cb8acd3e
2 changed files with 38 additions and 1 deletions
|
|
@ -73,7 +73,11 @@ defmodule Pleroma.Workers.AttachmentsCleanupWorker do
|
|||
_ -> ""
|
||||
end
|
||||
|
||||
base_url = Pleroma.Config.get([__MODULE__, :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…
Add table
Add a link
Reference in a new issue