@@ -136,12 +136,14 @@ RUN patch -u ${BASE_DIR}/lib/private/Updater.php -i ${TMP_PATCH_DIR}/010-disable
RUN cd${BASE_DIR}&& patch -p0 < ${TMP_PATCH_DIR}/011-privacy-settings.patch
RUN patch -u${BASE_DIR}/lib/private/Authentication/Token/PublicKeyTokenProvider.php -i${TMP_PATCH_DIR}/013-revert-token-password-update.patch
RUN patch -u${BASE_DIR}/lib/private/legacy/OC_Helper.php -i${TMP_PATCH_DIR}/014-add-mail-usage.patch
RUN cd${BASE_DIR}&& patch -u${BASE_DIR}/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php -i${TMP_PATCH_DIR}/015-email-mail-template.patch
RUN cd${BASE_DIR}&& patch -p0 <${TMP_PATCH_DIR}/015-email-mail-template.patch
RUN patch -u${BASE_DIR}/core/Command/User/Setting.php -i${TMP_PATCH_DIR}/018-occ-user-setting.patch
RUN patch -u${BASE_DIR}/apps/files/js/files.js -i${TMP_PATCH_DIR}/021-repeated-storage-dialog-fix.patch
RUN cd${BASE_DIR}&& patch -u${BASE_DIR}/3rdparty/sabre/vobject/lib/ITip/Broker.php -i${TMP_PATCH_DIR}/022-significantchange.patch
RUN patch -u${BASE_DIR}/apps/dav/lib/CalDAV/Reminder/ReminderService.php -i${TMP_PATCH_DIR}/024-reminder-service-handle-exception.patch
RUN patch -u${BASE_DIR}/apps/theming/lib/Themes/CommonThemeTrait.php -i${TMP_PATCH_DIR}/026-primary-color-fix.patch
RUN patch -u${BASE_DIR}/lib/private/Preview/Watcher.php -i${TMP_PATCH_DIR}/030-preview-watcher-null-check.patch
RUN patch -u${BASE_DIR}/lib/private/Template/JSResourceLocator.php -i${TMP_PATCH_DIR}/031-theme-custom-app-translations.patch
RUN rm-rf${TMP_PATCH_DIR}
@@ -177,22 +179,22 @@ RUN sed -i 's/settings-hint/settings-hint hidden/' ${BASE_DIR}/apps/settings/tem
RUN sed-i's/ in Nextcloud/ /'${BASE_DIR}/custom_apps/integration_google/js/integration_google-personalSettings.js
RUN sed-i's/Nextcloud administrator/administrator/'${BASE_DIR}/custom_apps/integration_google/js/integration_google-personalSettings.js
#replace error class in schedule response error file to fix error color
RUN sed-i's/update/error/g'${BASE_DIR}/apps/dav/templates/schedule-response-error.php
# Fix the navbar entries
RUN sed-i's/this.appLimit=e/this.appLimit=this.appList.length/'${BASE_DIR}/dist/core-main.js
# Fix total quota value for users in settings and files
RUN sed-i"s/'total'/'quota'/"${BASE_DIR}/apps/files/lib/Controller/ViewController.php
RUN sed-i"s/'total'/'quota'/"${BASE_DIR}/apps/settings/lib/Settings/Personal/PersonalInfo.php
RUN sed-i"s/\['total'\]/\['quota'\]/"${BASE_DIR}/apps/provisioning_api/lib/Controller/AUserData.php
# Fix API call in files script
RUN sed-i"s/ajax\/getstoragestats/api\/v1\/stats/g"${BASE_DIR}/apps/files/js/files.js
Fromselfhostasecloud
ARG BASE_DIR="/usr/src/nextcloud"
ARG TMP_PATCH_DIR="/tmp/build_patches"
ARG THEME_VERSION="25.0.16"
ARG LDAP_WRITE_SUPPORT_VERSION="1.7.0"
ARG THEME_VERSION="26.0.0"
ARG LDAP_WRITE_SUPPORT_VERSION="1.8.0"
ARG OIDC_LOGIN_VERSION="2.6.0"
ARG IS_SELFHOST=false
@@ -233,13 +235,12 @@ RUN sed -i 's/https:\/\/nextcloud.com\/signup\//https:\/\/e\.foundation\/<?php p
RUN sed-i's/$context->registerAlternativeLogin(OIDCLoginOption::class);/\/\/$context->registerAlternativeLogin(OIDCLoginOption::class);/'${BASE_DIR}/custom_apps/oidc_login/lib/AppInfo/Application.php
# add attr about how many notifications to notif icon
RUN sed-i's/attrs:{id:"notifications",/attrs:{id:"notifications","data-has-notifications":0!==e.notifications.length,/'${BASE_DIR}/apps/notifications/js/notifications-main.js
RUN sed-i's/attrs:{id:"notifications",/attrs:{id:"notifications","data-has-notifications":0!==t.notifications.length,/'${BASE_DIR}/apps/notifications/js/notifications-node_modules_moment_locale_sync_recursive_-src_NotificationsApp_vue.js
# Add data-object-type to notification
RUN sed-i's/"data-id":e.notificationId,/"data-id":e.notificationId,"data-object-type":e.objectType,/'${BASE_DIR}/apps/notifications/js/notifications-main.js
RUN sed-i's/"data-id":t.notificationId,/"data-id":t.notificationId,"data-object-type":t.objectType,/'${BASE_DIR}/apps/notifications/js/notifications-node_modules_moment_locale_sync_recursive_-src_NotificationsApp_vue.js
#Hide Archive/Unarchive feature in memories app
RUN sed-i's/{name:(0,O.Iu)("memories","Archive"),icon:Yo,callback:this.archiveSelection.bind(this),if:()=>!this.routeIsArchiveFolder()&&!this.routeIsAlbums},{name:(0,O.Iu)("memories","Unarchive"),icon:Ko,callback:this.archiveSelection.bind(this),if:()=>this.routeIsArchiveFolder()},//g'${BASE_DIR}/custom_apps/memories/js/memories-main.js
RUN sed-i's/{name:"archive",icon:Yo,title:(0,O.Iu)("memories","Archive")},//g'${BASE_DIR}/custom_apps/memories/js/memories-main.js
# Rename Memories to Gallery
RUN sed-i's/<name>Memories<\/name>/<name>Gallery<\/name>/g'${BASE_DIR}/custom_apps/memories/appinfo/info.xml
RUN cd${BASE_DIR}/custom_apps/memories/js &&sed-i's/Memories has been/Gallery has been/g' memories-main.js &&sed-i's/Memories has been/Gallery has been/g' memories-admin.js
@@ -249,7 +250,7 @@ RUN cd ${BASE_DIR}/custom_apps/memories/js && sed -i 's/Memories Settings/Galler
RUN cd${BASE_DIR}/custom_apps/contacts &&sed-i' s/"GROUP","INDIVIDUAL"/"INDIVIDUAL"/g' js/contacts-main.js
RUN cd${BASE_DIR}/custom_apps/calendar &&sed-i's/"GROUP","INDIVIDUAL"/"INDIVIDUAL"/g' js/calendar-main.js
RUN cd${BASE_DIR}/custom_apps/calendar &&sed-i's/{name:\[o,"displayname"\]},//' js/calendar-main.js
RUN cd${BASE_DIR}/custom_apps/calendar &&sed-i's/{name:\[a,"displayname"\]},//' js/calendar-main.js
RUN cd${BASE_DIR}/custom_apps/notes &&sed-i's/<step>OCA\\Notes\\Migration\\EditorHint<\/step>//g' appinfo/info.xml
RUN cd${BASE_DIR}/apps/theming &&sed-i's/<step>OCA\\Theming\\Migration\\MigrateUserConfig<\/step>//g' appinfo/info.xml
@@ -258,8 +259,9 @@ RUN cd ${BASE_DIR}/apps/theming && sed -i 's/<step>OCA\\Theming\\Migration\\Migr
RUN cd${BASE_DIR}/custom_apps/memories &&sed-i's/shareTypes:\[bc\.D\.SHARE_TYPE_USER,bc\.D\.SHARE_TYPE_GROUP\]}});/shareTypes:[bc.D.SHARE_TYPE_USER,bc.D.SHARE_TYPE_EMAIL]}}),n=e.data.ocs.data.filter((e=>"emails"!==e.source)),r={data:{ocs:{meta:e.data.ocs.meta,data:n}}};/g' js/memories-main.js
RUN cd${BASE_DIR}/custom_apps/memories &&sed-i's/this\.currentSearchResults=e\.data\./this\.currentSearchResults=r\.data\./g' js/memories-main.js
# Remove colored background from email template logo
RUN sed-i's/$this->header, \[$this->themingDefaults->getColorPrimary()/$this->header, \["none"/'${BASE_DIR}/lib/private/Mail/EMailTemplate.php
RUN sed-i's/$this->header, \[$this->themingDefaults->getDefaultColorPrimary()/$this->header, \["none"/'${BASE_DIR}/lib/private/Mail/EMailTemplate.php
# Remove changeAvatar in changeUserHook of ldap_write_support as it throws errors
RUN sed-i's/$this->changeAvatar/\/\/ $this->changeAvatar/'${BASE_DIR}/custom_apps/ldap_write_support/lib/LDAPUserManager.php