Skip to content

Commit

Permalink
Fix signup notifications for deleted accounts (#1355)
Browse files Browse the repository at this point in the history
  • Loading branch information
BentiGorlich authored Jan 14, 2025
1 parent 1aae911 commit 8a3d435
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ public function doWork(MessageInterface $message): void
if (!$user) {
throw new UnrecoverableMessageHandlingException('user not found');
}
$this->signupNotificationManager->sendNewSignupNotification($user);

if (!$user->isAccountDeleted() && !$user->isSoftDeleted() && null === $user->markedForDeletionAt) {
// only send notifications for new accounts if the account is not deleted,
// this is necessary because we create dummy accounts to block the username when an account is deleted
$this->signupNotificationManager->sendNewSignupNotification($user);
}
}
}

0 comments on commit 8a3d435

Please sign in to comment.