From ddcec9842f195018f5ddbd0599f8667b35168019 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Fri, 13 Feb 2026 12:18:58 -0500 Subject: [PATCH] fix: ensure sync modal only triggers if community sharing is enabled (#21376) --- src/routes/+layout.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 6c4d0e523..66f66676f 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -849,7 +849,11 @@ } // Auto-show SyncStatsModal when opened with ?sync=true (from community) - if ((window.opener ?? false) && $page.url.searchParams.get('sync') === 'true') { + if ( + (window.opener ?? false) && + $page.url.searchParams.get('sync') === 'true' && + ($config?.features?.enable_community_sharing ?? false) + ) { showSyncStatsModal = true; }