projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
HTTP: Implement max request limits
[akkoma]
/
lib
/
pleroma
/
workers
/
cron
/
purge_expired_activities_worker.ex
diff --git
a/lib/pleroma/workers/cron/purge_expired_activities_worker.ex
b/lib/pleroma/workers/cron/purge_expired_activities_worker.ex
index b8953dd7fa858e78038a827ff4a12a2c588d2a77..e926c5dc8e68a5624bf11d5cfdb165ff7eddef13 100644
(file)
--- a/
lib/pleroma/workers/cron/purge_expired_activities_worker.ex
+++ b/
lib/pleroma/workers/cron/purge_expired_activities_worker.ex
@@
-20,9
+20,11
@@
defmodule Pleroma.Workers.Cron.PurgeExpiredActivitiesWorker do
@interval :timer.minutes(1)
@impl Oban.Worker
- def perform(_
opts, _
job) do
+ def perform(_job) do
if Config.get([ActivityExpiration, :enabled]) do
Enum.each(ActivityExpiration.due_expirations(@interval), &delete_activity/1)
+ else
+ :ok
end
end