aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/workers
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2020-06-09 10:19:55 -0500
committerMark Felder <feld@FreeBSD.org>2020-06-09 10:19:55 -0500
commitacd7b7ada4ed1090b283d2c16ae94194784311fd (patch)
treecdf676b83d64bdc3cb892d0a3b863d1916111a30 /lib/pleroma/workers
parent2222b21eb74e8e8c0d462081606fcc8201dd12ec (diff)
downloadpleroma-fix/mediaproxy-http-invalidation.tar.gz
Invalidation.enabled function is booleanfix/mediaproxy-http-invalidation
Diffstat (limited to 'lib/pleroma/workers')
-rw-r--r--lib/pleroma/workers/attachments_cleanup_worker.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/workers/attachments_cleanup_worker.ex b/lib/pleroma/workers/attachments_cleanup_worker.ex
index 4a7b67080..24694cc67 100644
--- a/lib/pleroma/workers/attachments_cleanup_worker.ex
+++ b/lib/pleroma/workers/attachments_cleanup_worker.ex
@@ -52,7 +52,7 @@ defmodule Pleroma.Workers.AttachmentsCleanupWorker do
end
end)
- lock_attachments(MediaProxy.Invalidation.enabled(), hrefs -- exclude_urls)
+ lock_attachments(MediaProxy.Invalidation.enabled?(), hrefs -- exclude_urls)
Enum.each(attachment_urls, fn href ->
href
@@ -62,7 +62,7 @@ defmodule Pleroma.Workers.AttachmentsCleanupWorker do
delete_objects(object_ids)
- cache_purge(MediaProxy.Invalidation.enabled(), hrefs -- exclude_urls)
+ cache_purge(MediaProxy.Invalidation.enabled?(), hrefs -- exclude_urls)
{:ok, :success}
end