From 68e0d80f6f8a746fc8ac2614b353e9263da8be43 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 2 Jun 2026 23:58:59 +0300 Subject: [PATCH 1/2] undo default change per @lain's request --- src/modules/default_config_state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/default_config_state.js b/src/modules/default_config_state.js index 233e15ca1..208dc548b 100644 --- a/src/modules/default_config_state.js +++ b/src/modules/default_config_state.js @@ -631,7 +631,7 @@ export const LOCAL_DEFAULT_CONFIG_DEFINITIONS = { }, imageCompression: { description: 'Image compression (WebP/JPEG)', - default: false, + default: true, }, alwaysUseJpeg: { description: 'Compress images using JPEG only', From 91595c19ae07dbabd9b2ef1faa8e0561482de2d8 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 3 Jun 2026 03:28:37 +0300 Subject: [PATCH 2/2] fix errors on initial pleroma-fe boot --- src/components/status/status.js | 2 +- src/stores/sync_config.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/status/status.js b/src/components/status/status.js index 150e77272..607b7f04e 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -264,7 +264,7 @@ const Status = { }, muteFilterHits() { return muteFilterHits( - Object.values(useSyncConfigStore().prefsStorage.simple.muteFilters), + Object.values(useSyncConfigStore().prefsStorage.simple.muteFilters || {}), this.status, ) }, diff --git a/src/stores/sync_config.js b/src/stores/sync_config.js index 1caa2b030..3010fc738 100644 --- a/src/stores/sync_config.js +++ b/src/stores/sync_config.js @@ -796,11 +796,12 @@ export const useSyncConfigStore = defineStore('sync_config', { afterLoad(state) { console.debug('Validating persisted state of SyncConfig') const newState = { ...state } + newState.prefsStorage = newState.prefsStorage || {} const newEntries = Object.entries(ROOT_CONFIG).map(([path, value]) => { const definition = ROOT_CONFIG_DEFINITIONS[path] const finalValue = validateSetting({ path, - value: newState.prefsStorage.simple[path], + value: newState.prefsStorage.simple?.[path], definition, throwError: false, validateObjects: false,