@@ -236,41 +236,41 @@ 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 '/attrs:{id:"notifications",/!{q1}; 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!==e.notifications.length,/' ${BASE_DIR}/apps/notifications/js/notifications-main.js
# Add data-object-type to notification
#RUN sed -i '/"data-id":e.notificationId,/!{q1}; 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":e.notificationId,/"data-id":e.notificationId,"data-object-type":e.objectType,/' ${BASE_DIR}/apps/notifications/js/notifications-main.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'/Memories has been/!{q1}; {s/Memories has been/Gallery has been/g}' memories-main.js &&sed-i'/Memories has been/!{q1}; {s/Memories has been/Gallery has been/g}' memories-admin.js
RUN cd${BASE_DIR}/custom_apps/memories/js &&sed-i'/Memories Settings/!{q1}; s/Memories Settings/Gallery Settings/g' memories-main.js
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
RUN cd${BASE_DIR}/custom_apps/memories/js &&sed-i's/Memories Settings/Gallery Settings/g' memories-main.js
# autocomplete leak tweak apps frontend with sed, disable group suggestion
RUN cd${BASE_DIR}/custom_apps/contacts &&sed-i'/"GROUP","INDIVIDUAL"/!{q1}; s/"GROUP","INDIVIDUAL"/"INDIVIDUAL"/g' js/contacts-main.js
RUN cd${BASE_DIR}/custom_apps/calendar &&sed-i'/"GROUP","INDIVIDUAL"/!{q1}; s/"GROUP","INDIVIDUAL"/"INDIVIDUAL"/g' js/calendar-main.js
RUN cd${BASE_DIR}/custom_apps/calendar &&sed-i'/{name:\[a,"displayname"\]},/!{q1}; s/{name:\[a,"displayname"\]},//' js/calendar-main.js
RUN cd${BASE_DIR}/custom_apps/notes &&sed-i'/<step>OCA\\Notes\\Migration\\EditorHint<\/step>/!{q1}; s/<step>OCA\\Notes\\Migration\\EditorHint<\/step>//g' appinfo/info.xml
RUN cd${BASE_DIR}/apps/theming &&sed-i'/<step>OCA\\Theming\\Migration\\MigrateUserConfig<\/step>/!{q1}; s/<step>OCA\\Theming\\Migration\\MigrateUserConfig<\/step>//g' appinfo/info.xml
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:\[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
#enable email search in memories app
RUN cd${BASE_DIR}/custom_apps/memories &&sed-i'/shareTypes:\[bc\.D\.SHARE_TYPE_USER,bc\.D\.SHARE_TYPE_GROUP\]}});/!{q1}; 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'/this\.currentSearchResults=e\.data\./!{q1}; s/this\.currentSearchResults=e\.data\./this\.currentSearchResults=r\.data\./g' js/memories-main.js
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'/$this->header, \[$this->themingDefaults->getDefaultColorPrimary()/!{q1}; s/$this->header, \[$this->themingDefaults->getDefaultColorPrimary()/$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'/$this->changeAvatar/!{q1}; s/$this->changeAvatar/\/\/ $this->changeAvatar/'${BASE_DIR}/custom_apps/ldap_write_support/lib/LDAPUserManager.php
RUN sed-i's/$this->changeAvatar/\/\/ $this->changeAvatar/'${BASE_DIR}/custom_apps/ldap_write_support/lib/LDAPUserManager.php
# Remove 'fix broken values of calendar objects' repair step
RUN sed-i'/<step>OCA\\DAV\\Migration\\CalDAVRemoveEmptyValue<\/step>/!{q1}; /<step>OCA\\DAV\\Migration\\CalDAVRemoveEmptyValue<\/step>/d'${BASE_DIR}/apps/dav/appinfo/info.xml
RUN sed-i'/<step>OCA\\DAV\\Migration\\CalDAVRemoveEmptyValue<\/step>/d'${BASE_DIR}/apps/dav/appinfo/info.xml
# Custom theme
RUN rm-rf${BASE_DIR}/themes/eCloud &&\
@@ -287,5 +287,5 @@ RUN if [ "$IS_SELFHOST" = false ]; then \
fi
# Seds to fix displayname save regression
RUN sed-i"/'email' ||/!{q1}; s/'email' ||/'email'/"${BASE_DIR}/apps/settings/js/federationsettingsview.js
RUN sed-i"/field === 'displayname'/!{q1}; s/field === 'displayname'//"${BASE_DIR}/apps/settings/js/federationsettingsview.js
RUN sed-i"s/'email' ||/'email'/"${BASE_DIR}/apps/settings/js/federationsettingsview.js
RUN sed-i"s/field === 'displayname'//"${BASE_DIR}/apps/settings/js/federationsettingsview.js