From 41eadab40cebc7997a41216ce837c09337e7b08a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 15 Dec 2023 09:36:23 +0100 Subject: [PATCH] fix: Avoid using constant that is not available on 25 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Service/NoteUtil.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Service/NoteUtil.php b/lib/Service/NoteUtil.php index 23377a983..156bd0871 100644 --- a/lib/Service/NoteUtil.php +++ b/lib/Service/NoteUtil.php @@ -229,7 +229,8 @@ public function getShareTypes(File $file): array { IShare::TYPE_EMAIL, IShare::TYPE_ROOM, IShare::TYPE_DECK, - IShare::TYPE_SCIENCEMESH, + // FIXME: Move to constant once Nextcloud 26 is the minimum supported version + 15, // IShare::TYPE_SCIENCEMESH, ]; $shareTypes = [];