RUN cd${BASE_DIR}&& patch -p1 < ${TMP_PATCH_DIR}/036-user-config-change-event.patch
# fixed Mailer.php error which is fixed in upstream,so we need to remove this in Nextcloud 29 upgrade
RUN patch -u${BASE_DIR}/lib/private/Mail/Mailer.php -i${TMP_PATCH_DIR}/037-mailer-template-fix.patch
RUN rm-rf${TMP_PATCH_DIR}
# Custom theme
@@ -211,7 +213,7 @@ From selfhost as ecloud
ARG BASE_DIR="/usr/src/nextcloud"
ARG TMP_PATCH_DIR="/tmp/build_patches"
ARG THEME_VERSION="28.0.2"
ARG LDAP_WRITE_SUPPORT_VERSION="1.10.0"
ARG LDAP_WRITE_SUPPORT_VERSION="1.11.0"
ARG IS_SELFHOST=false
RUN curl -fsSL-o ldap_write_support.tar.gz \
@@ -233,8 +235,6 @@ RUN patch -u ${BASE_DIR}/apps/dav/lib/HookManager.php -i ${TMP_PATCH_DIR}/028-de
RUN patch -u${BASE_DIR}/apps/provisioning_api/lib/Controller/UsersController.php -i${TMP_PATCH_DIR}/029-restrict-user-to-change-primary-email.patch
RUN patch -u${BASE_DIR}/lib/private/Security/VerificationToken/VerificationToken.php -i${TMP_PATCH_DIR}/033-verification-token-private.patch
RUN patch -u${BASE_DIR}/lib/private/AppFramework/Middleware/Security/CORSMiddleware.php -i${TMP_PATCH_DIR}/034-oidc-bearer-token-auth.patch
#fixed regression in generic event type for nextcloud 28.0.9
RUN patch -u${BASE_DIR}/apps/dav/lib/AppInfo/Application.php -i${TMP_PATCH_DIR}/038-generic-event-fix.patch
RUN rm-rf${TMP_PATCH_DIR}
@@ -246,9 +246,7 @@ RUN sed -i 's/$this->getAvatarImage($user)/null/' ${BASE_DIR}/apps/dav/lib/CardD
# RUN cd ${BASE_DIR}/dist && sed -i 's/resetPassword:!1/resetPassword:!1||Z.showResetPassword==="1"/' core-login.js
# add attr about how many notifications to notif icon
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-data_image_svg_xml_base64-ab95a3.js
# Add data-object-type to notification
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-data_image_svg_xml_base64-ab95a3.js
RUN sed-i's/attrs:{id:"notifications",/attrs:{id:"notifications","data-has-notifications":0!==t.notifications.length,/'${BASE_DIR}/apps/notifications/js/notifications-src_NotificationsApp_vue.js
# Rename Memories to Gallery
RUN sed-i's/<name>Memories<\/name>/<name>Gallery<\/name>/g'${BASE_DIR}/custom_apps/memories/appinfo/info.xml
@@ -308,7 +306,7 @@ RUN sed -i "s/return in_array(\$user->getBackendClassName(), \['Database', 'Gues
RUN sed-i':a;N;$!ba;s/t("NcActionButton",{on:{click:e.onToggleSharing},scopedSlots:e._u(\[{key:"icon",fn:function(){return\[t("ShareVariantIcon",{attrs:{size:20}})\]},proxy:!0}\])},\[e._v("\\n\\t\\t\\t"+e._s(e.t("notes","Share"))+"\\n\\t\\t")\]),e._v(" "),/''/g'${BASE_DIR}/custom_apps/notes/js/notes-main.js
# Add id to delete account settings section and hide it by default