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:
Mark Felder 2021-02-23 09:51:07 -06:00
parent cc0756ec56
commit 14c8912221

View File

@ -16,6 +16,7 @@ defmodule Pleroma.Workers.BackgroundWorker do
def perform(%Job{args: %{"op" => "delete_user", "user_id" => user_id}}) do
user = User.get_cached_by_id(user_id)
User.set_activation_async(user, false)
User.perform(:delete, user)
end