forked from AkkomaGang/akkoma
Revert "TEMP: add logging for cleanup worker"
This reverts commit d89d189bd3
.
This commit is contained in:
parent
d89d189bd3
commit
fe8395c2cd
1 changed files with 0 additions and 4 deletions
|
@ -10,8 +10,6 @@ defmodule Pleroma.Workers.AttachmentsCleanupWorker do
|
|||
|
||||
use Pleroma.Workers.WorkerHelper, queue: "attachments_cleanup"
|
||||
|
||||
require Logger
|
||||
|
||||
@impl Oban.Worker
|
||||
def perform(%Job{
|
||||
args: %{
|
||||
|
@ -20,8 +18,6 @@ def perform(%Job{
|
|||
}
|
||||
}) do
|
||||
if Pleroma.Config.get([:instance, :cleanup_attachments], false) do
|
||||
Logger.notice("EASY_TO_GREP_ACW: Trying to cleanup #{inspect(hrefs)}")
|
||||
|
||||
attachments
|
||||
|> Enum.flat_map(fn item -> Enum.map(item["url"], & &1["href"]) end)
|
||||
|> fetch_objects
|
||||
|
|
Loading…
Reference in a new issue