Update UpdateController.php

This commit is contained in:
Hosteroid
2026-02-11 19:55:56 +02:00
parent 30a139d765
commit aca4c14b8b

View File

@@ -115,13 +115,12 @@ class UpdateController extends Controller
if (!$hasMigrations) { if (!$hasMigrations) {
try { try {
$notificationService = new NotificationService(); $notificationService = new NotificationService();
// For hotfixes the "to_version" is a commit SHA (e.g. "4371f17"), // For hotfixes $toVersion is a commit SHA (e.g. "4371f17").
// not a semver string. Pass the current app version so the // notifySystemUpgrade() detects the SHA format and includes it
// notification reads "v1.1.3 has been updated" instead of "v4371f17". // in the message as "hotfix <sha>".
$notifyToVersion = ($type === 'hotfix') ? $fromVersion : $toVersion;
$notificationService->notifyAdminsUpgrade( $notificationService->notifyAdminsUpgrade(
$fromVersion, $fromVersion,
$notifyToVersion, $toVersion,
0, 0,
!empty($result['composer_manual_required']) !empty($result['composer_manual_required'])
); );