commit 3170809666e2432346b90bbae63be4f7d3fb52d3
parent 4841e3aec3cbe25e2c1114cedaade6088e8763e6
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date:   Thu, 31 Jul 2025 16:12:42 +0200

feat(core): remove friend feed ads

Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com>

Diffstat:
Mcore/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/ConfigurationOverride.kt | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/ConfigurationOverride.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/ConfigurationOverride.kt @@ -64,6 +64,10 @@ class ConfigurationOverride : Feature("Configuration Override") { overrideProperty("BYPASS_AD_FEATURE_GATE", { context.config.global.blockAds.get() }, { true }) + + overrideProperty("SPONSORED_SNAPS_ENABLED", { context.config.global.blockAds.get() }, { false }) + overrideProperty("SPONSORED_SNAP_UPDATE_SPONSORED_FEED_ITEM", { context.config.global.blockAds.get() }, { false }) + arrayOf("CUSTOM_AD_TRACKER_URL", "CUSTOM_AD_INIT_SERVER_URL", "CUSTOM_AD_SERVER_URL", "INIT_PRIMARY_URL", "INIT_SHADOW_URL", "GRAPHENE_HOST").forEach { overrideProperty(it, { context.config.global.blockAds.get() }, { "http://127.0.0.1" }) }