From b438198a00be2e71c57e5d3701602e3e3fe0b20f Mon Sep 17 00:00:00 2001 From: CosmicAlpha Date: Thu, 21 Aug 2025 13:08:40 -0600 Subject: [PATCH] Use "RequestCustomDomain Status Update" for adding comments in job "RequestCustomDomain Extension" doesn't send notifications. --- includes/Jobs/RequestCustomDomainCFAddJob.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/Jobs/RequestCustomDomainCFAddJob.php b/includes/Jobs/RequestCustomDomainCFAddJob.php index 1205803..412cfc9 100644 --- a/includes/Jobs/RequestCustomDomainCFAddJob.php +++ b/includes/Jobs/RequestCustomDomainCFAddJob.php @@ -39,7 +39,7 @@ public function __construct( $this->zoneId = $this->config->get( 'RequestCustomDomainCloudflareConfig' )['zoneid'] ?? ''; $this->messageLocalizer = RequestContext::getMain(); - $this->systemUser = User::newSystemUser( 'RequestCustomDomain Extension', [ 'steal' => true ] ); + $this->systemUser = User::newSystemUser( 'RequestCustomDomain Status Update', [ 'steal' => true ] ); $this->baseApiUrl = 'https://api.cloudflare.com/client/v4'; $this->id = $params['id']; @@ -167,7 +167,9 @@ private function handleOutcome( string $status, string $comment ): bool { $this->requestManager->updateServerName(); // Log the request to the ManageWiki log - $this->requestManager->logToManageWiki( $this->systemUser ); + $this->requestManager->logToManageWiki( + User::newSystemUser( 'RequestCustomDomain Extension', [ 'steal' => true ] ) + ); $this->requestManager->setStatus( 'complete' ); $this->requestManager->addComment( $activeCommentText, $this->systemUser );