Loading Dockerfile +1 −0 Original line number Diff line number Diff line Loading @@ -114,6 +114,7 @@ RUN patch -u ${BASE_DIR}/core/Controller/SvgController.php -i ${TMP_PATCH_DIR}/0 RUN cd ${BASE_DIR} && patch -p0 < ${TMP_PATCH_DIR}/009-help-links.patch RUN patch -u ${BASE_DIR}/lib/private/Updater.php -i ${TMP_PATCH_DIR}/010-disable-app-store-upgrade.patch RUN cd ${BASE_DIR} && patch -p0 < ${TMP_PATCH_DIR}/011-privacy-settings.patch RUN cd ${BASE_DIR} && patch -u ${BASE_DIR}/apps/dashboard/lib/Controller/DashboardController.php -i ${TMP_PATCH_DIR}/012-remove-user-status-widget.patch RUN rm -rf ${TMP_PATCH_DIR} # autocomplete leak tweak apps frontend with sed, disable group suggestion Loading patches/012-remove-user-status-widget.patch +6 −7 Original line number Diff line number Diff line Loading @@ -6,14 +6,13 @@ This patch removes user status widget from available widgets in dashboard --- DashboardController.php 2021-09-17 12:56:19.691685082 +0530 +++ DashboardController-new.php 2021-09-17 12:59:18.906502554 +0530 @@ -111,6 +111,10 @@ @@ -108,6 +108,9 @@ 'url' => $widget->getUrl() ]; }, $this->dashboardManager->getWidgets()); + $widgets = array_filter($widgets, function($widget) { + return($widget['id'] !== "user_status"); + }); + $configStatuses = $this->config->getUserValue($this->userId, 'dashboard', 'statuses', ''); $statuses = json_decode($configStatuses, true); // We avoid getting an empty array as it will not produce an object in UI's JS Loading
Dockerfile +1 −0 Original line number Diff line number Diff line Loading @@ -114,6 +114,7 @@ RUN patch -u ${BASE_DIR}/core/Controller/SvgController.php -i ${TMP_PATCH_DIR}/0 RUN cd ${BASE_DIR} && patch -p0 < ${TMP_PATCH_DIR}/009-help-links.patch RUN patch -u ${BASE_DIR}/lib/private/Updater.php -i ${TMP_PATCH_DIR}/010-disable-app-store-upgrade.patch RUN cd ${BASE_DIR} && patch -p0 < ${TMP_PATCH_DIR}/011-privacy-settings.patch RUN cd ${BASE_DIR} && patch -u ${BASE_DIR}/apps/dashboard/lib/Controller/DashboardController.php -i ${TMP_PATCH_DIR}/012-remove-user-status-widget.patch RUN rm -rf ${TMP_PATCH_DIR} # autocomplete leak tweak apps frontend with sed, disable group suggestion Loading
patches/012-remove-user-status-widget.patch +6 −7 Original line number Diff line number Diff line Loading @@ -6,14 +6,13 @@ This patch removes user status widget from available widgets in dashboard --- DashboardController.php 2021-09-17 12:56:19.691685082 +0530 +++ DashboardController-new.php 2021-09-17 12:59:18.906502554 +0530 @@ -111,6 +111,10 @@ @@ -108,6 +108,9 @@ 'url' => $widget->getUrl() ]; }, $this->dashboardManager->getWidgets()); + $widgets = array_filter($widgets, function($widget) { + return($widget['id'] !== "user_status"); + }); + $configStatuses = $this->config->getUserValue($this->userId, 'dashboard', 'statuses', ''); $statuses = json_decode($configStatuses, true); // We avoid getting an empty array as it will not produce an object in UI's JS