From aca4c14b8bf2553433254f2d9c7fd11dc1f6cada Mon Sep 17 00:00:00 2001 From: Hosteroid Date: Wed, 11 Feb 2026 19:55:56 +0200 Subject: [PATCH] Update UpdateController.php --- app/Controllers/UpdateController.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/Controllers/UpdateController.php b/app/Controllers/UpdateController.php index cafe926..dc43a8b 100644 --- a/app/Controllers/UpdateController.php +++ b/app/Controllers/UpdateController.php @@ -115,13 +115,12 @@ class UpdateController extends Controller if (!$hasMigrations) { try { $notificationService = new NotificationService(); - // For hotfixes the "to_version" is a commit SHA (e.g. "4371f17"), - // not a semver string. Pass the current app version so the - // notification reads "v1.1.3 has been updated" instead of "v4371f17". - $notifyToVersion = ($type === 'hotfix') ? $fromVersion : $toVersion; + // For hotfixes $toVersion is a commit SHA (e.g. "4371f17"). + // notifySystemUpgrade() detects the SHA format and includes it + // in the message as "hotfix ". $notificationService->notifyAdminsUpgrade( $fromVersion, - $notifyToVersion, + $toVersion, 0, !empty($result['composer_manual_required']) );