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
/
clear_oauth_token_worker.ex
diff --git
a/lib/pleroma/workers/cron/clear_oauth_token_worker.ex
b/lib/pleroma/workers/cron/clear_oauth_token_worker.ex
index 341eff054c17c93fcf8a2260de3681d73a30d214..d41be4e87be28b19c1306b1bc349da51340368dd 100644
(file)
--- a/
lib/pleroma/workers/cron/clear_oauth_token_worker.ex
+++ b/
lib/pleroma/workers/cron/clear_oauth_token_worker.ex
@@
-13,9
+13,11
@@
defmodule Pleroma.Workers.Cron.ClearOauthTokenWorker do
alias Pleroma.Web.OAuth.Token
@impl Oban.Worker
- def perform(_
opts, _
job) do
+ def perform(_job) do
if Config.get([:oauth2, :clean_expired_tokens], false) do
Token.delete_expired_tokens()
+ else
+ :ok
end
end
end