First step for deleting a user should be to fire off a job to deactivate the user so they can't make more posts or log in
This commit is contained in:
parent
cc0756ec56
commit
14c8912221
@ -16,6 +16,7 @@ defmodule Pleroma.Workers.BackgroundWorker do
|
|||||||
|
|
||||||
def perform(%Job{args: %{"op" => "delete_user", "user_id" => user_id}}) do
|
def perform(%Job{args: %{"op" => "delete_user", "user_id" => user_id}}) do
|
||||||
user = User.get_cached_by_id(user_id)
|
user = User.get_cached_by_id(user_id)
|
||||||
|
User.set_activation_async(user, false)
|
||||||
User.perform(:delete, user)
|
User.perform(:delete, user)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user