Fix __MODULE__ usage
authorRoman Chvanikov <chvanikoff@pm.me>
Tue, 28 Jan 2020 13:38:44 +0000 (16:38 +0300)
committerRoman Chvanikov <chvanikoff@pm.me>
Tue, 28 Jan 2020 13:38:44 +0000 (16:38 +0300)
lib/pleroma/workers/attachments_cleanup_worker.ex

index a738df90aac25bf64286f9b78724a962edcbcaa6..ce6998a548451b9228e6a42126ff79563a9ce532 100644 (file)
@@ -73,7 +73,7 @@ defmodule Pleroma.Workers.AttachmentsCleanupWorker do
               _ -> ""
             end
 
-          base_url = Pleroma.Config.get([__MODULE__, :base_url], Pleroma.Web.base_url())
+          base_url = Pleroma.Config.get([Pleroma.Upload, :base_url], Pleroma.Web.base_url())
 
           file_path = String.trim_leading(href, "#{base_url}/#{prefix}")