#RUN cd ${BASE_DIR} && patch -p1 < ${TMP_PATCH_DIR}/036-user-config-change-event.patch
RUN cd${BASE_DIR}&& patch -p1 < ${TMP_PATCH_DIR}/036-user-config-change-event.patch
RUN rm-rf${TMP_PATCH_DIR}
@@ -198,9 +198,9 @@ RUN sed -i 's/this.appLimit=e/this.appLimit=this.appList.length/' ${BASE_DIR}/di
# Fix total quota value for users in settings and files
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
RUN sed-i"s/\['total'\]/\['quota'\]/"${BASE_DIR}/apps/provisioning_api/lib/Controller/AUserDataOCSController.php
# Fix API call in files script
# Fix API call in files script -Not needed in NC 31
#RUN sed -i "s/ajax\/getstoragestats/api\/v1\/stats/g" ${BASE_DIR}/apps/files/js/files.js
Fromselfhostasecloud
@@ -222,7 +222,7 @@ RUN patch -u ${BASE_DIR}/core/Controller/ContactsMenuController.php -i ${TMP_PAT
RUN cd${BASE_DIR}&& patch -p0 < ${TMP_PATCH_DIR}/005-autocomplete-user-leak-core.patch
RUN patch -u${BASE_DIR}/core/templates/layout.guest.php -i${TMP_PATCH_DIR}/016-login-screen.patch
RUN patch -u${BASE_DIR}/lib/private/Notification/Manager.php -i${TMP_PATCH_DIR}/020-fairuse-notification-fix.patch
#RUN cd ${BASE_DIR} && patch -u ${BASE_DIR}/apps/user_ldap/lib/User_LDAP.php -i ${TMP_PATCH_DIR}/023-ldap-check-pwd-optimization.patch
#RUN cd ${BASE_DIR} && patch -u ${BASE_DIR}/apps/user_ldap/lib/User_LDAP.php -i ${TMP_PATCH_DIR}/023-ldap-check-pwd-optimization.patch - already added in nc31
RUN patch -u${BASE_DIR}/lib/private/User/Manager.php -i${TMP_PATCH_DIR}/025-optimize-get-by-email.patch
RUN patch -u${BASE_DIR}/apps/dav/lib/Connector/Sabre/Principal.php -i${TMP_PATCH_DIR}/027-displayname-user-leak-dav.patch
RUN patch -u${BASE_DIR}/apps/dav/lib/HookManager.php -i${TMP_PATCH_DIR}/028-default-task-calendar.patch
@@ -243,7 +243,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!==u.notifications.length,/' ${BASE_DIR}/apps/notifications/js/NotificationsApp-DS2Cdf60.chunk.mjs
RUN sed-i's/attrs:{id:"notifications",/attrs:{id:"notifications","data-has-notifications":0!==u.notifications.length,/'${BASE_DIR}/apps/notifications/js/NotificationsApp-BLfRaKfb.chunk.mjs
# Rename Memories to Gallery
RUN sed-i's/<name>Memories<\/name>/<name>Gallery<\/name>/g'${BASE_DIR}/custom_apps/memories/appinfo/info.xml