Skip to content

Commit

Permalink
handle user deletion for return
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Nov 20, 2023
1 parent 83f3a16 commit dbb311e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/MarkUserAsSpammerHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function handle(MarkUserAsSpammer $command): User
new MarkedUserAsSpammer($user, $actor)
);

return $command->user->refresh();
return $this->deleteUser ? new Guest() : $command->user->refresh();
}

protected function parseOptions(array $options): void
Expand Down

0 comments on commit dbb311e

Please sign in to comment.