projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make activity announceable by its author.
[akkoma]
/
lib
/
pleroma
/
workers
/
background_worker.ex
diff --git
a/lib/pleroma/workers/background_worker.ex
b/lib/pleroma/workers/background_worker.ex
index 082f20ab7882443ebeaed821c9a0a77d15690ff8..7ffc8eabec217ae19db9ec72c5465353526b4eeb 100644
(file)
--- a/
lib/pleroma/workers/background_worker.ex
+++ b/
lib/pleroma/workers/background_worker.ex
@@
-26,6
+26,11
@@
defmodule Pleroma.Workers.BackgroundWorker do
User.perform(:delete, user)
end
+ def perform(%{"op" => "force_password_reset", "user_id" => user_id}, _job) do
+ user = User.get_cached_by_id(user_id)
+ User.perform(:force_password_reset, user)
+ end
+
def perform(
%{
"op" => "blocks_import",