package-pipeline-nextcloud/nextcloud-27/patches/01_isfairuse_userfacing_ui.patch
s3lph f02435f2fa
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: initial commit, split off nextcloud packages from s3lph/package-pipeline
2023-11-11 07:05:59 +01:00

33 lines
1.7 KiB
Diff

diff -3ur a/nextcloud/apps/settings/templates/settings/personal/personal.info.php b/nextcloud/apps/settings/templates/settings/personal/personal.info.php
--- a/nextcloud/apps/settings/templates/settings/personal/personal.info.php 2022-10-21 16:18:20.730871392 +0200
+++ b/nextcloud/apps/settings/templates/settings/personal/personal.info.php 2022-10-21 16:23:38.133437330 +0200
@@ -35,13 +35,6 @@
'vue-settings-personal-info',
]);
?>
-<?php if (!$_['isFairUseOfFreePushService']) : ?>
- <div class="section">
- <div class="warning">
- <?php p($l->t('This community release of Nextcloud is unsupported and instant notifications are unavailable.')); ?>
- </div>
- </div>
-<?php endif; ?>
<div id="personal-settings" data-federation-enabled="<?php p($_['federationEnabled'] ? 'true' : 'false') ?>"
data-lookup-server-upload-enabled="<?php p($_['lookupServerUploadEnabled'] ? 'true' : 'false') ?>">
diff -3ur a/nextcloud/core/Controller/LoginController.php b/nextcloud/core/Controller/LoginController.php
--- a/nextcloud/core/Controller/LoginController.php 2022-10-21 16:18:20.610870426 +0200
+++ b/nextcloud/core/Controller/LoginController.php 2022-10-21 16:19:52.921615072 +0200
@@ -147,12 +147,6 @@
}
$loginMessages = $this->session->get('loginMessages');
- if (!$this->manager->isFairUseOfFreePushService()) {
- if (!is_array($loginMessages)) {
- $loginMessages = [[], []];
- }
- $loginMessages[1][] = $this->l10n->t('This community release of Nextcloud is unsupported and push notifications are limited.');
- }
if (is_array($loginMessages)) {
[$errors, $messages] = $loginMessages;
$this->initialStateService->provideInitialState('core', 'loginMessages', $messages);