From caf074eb3ed7844837843ea1f8159d20a4db6400 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Thu, 23 Jan 2025 21:11:22 +0100 Subject: [PATCH] fix: Properly read updater channel before returning version channel as a fallback Signed-off-by: Julius Knorr --- lib/public/ServerVersion.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/public/ServerVersion.php b/lib/public/ServerVersion.php index 637c34d3619..d44452d42d0 100644 --- a/lib/public/ServerVersion.php +++ b/lib/public/ServerVersion.php @@ -77,6 +77,12 @@ class ServerVersion { * @since 31.0.0 */ public function getChannel(): string { + $updaterChannel = Server::get(IConfig::class)->getSystemValueString('updater.release.channel', $this->channel); + + if (in_array($updaterChannel, ['beta', 'stable', 'enterprise', 'git'], true)) { + return $updaterChannel; + } + return $this->channel; }