commit 2a8f60c77351e5cfa7bddb4b4cb0d0ae793dc390 parent 420c02af64080a403a0f08ac5dbaaea84784f746 Author: rhunk <101876869+rhunk@users.noreply.github.com> Date: Wed, 29 May 2024 15:03:58 +0200 feat: revert friend source spoof Diffstat:
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/common/src/main/assets/lang/en_US.json b/common/src/main/assets/lang/en_US.json @@ -1197,7 +1197,8 @@ "added_by_mention": "By Mention", "added_by_group_chat": "By Group Chat", "added_by_qr_code": "By QR Code", - "added_by_community": "By Community" + "added_by_community": "By Community", + "added_by_quick_add": "By Quick Add (high risk of being banned)" }, "bypass_video_length_restriction": { "single": "Single media", diff --git a/common/src/main/kotlin/me/rhunk/snapenhance/common/config/impl/Experimental.kt b/common/src/main/kotlin/me/rhunk/snapenhance/common/config/impl/Experimental.kt @@ -58,6 +58,7 @@ class Experimental : ConfigContainer() { "added_by_group_chat", "added_by_qr_code", "added_by_community", + "added_by_quick_add", ) { addNotices(FeatureNotice.BAN_RISK) } val preventForcedLogout = boolean("prevent_forced_logout") { requireRestart(); addNotices(FeatureNotice.BAN_RISK, FeatureNotice.INTERNAL_BEHAVIOR); } } \ No newline at end of file diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/experiments/AddFriendSourceSpoof.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/experiments/AddFriendSourceSpoof.kt @@ -58,6 +58,10 @@ class AddFriendSourceSpoof : Feature("AddFriendSourceSpoof", loadParams = Featur setPage("profile") setSource(FriendAddSource.COMMUNITY) } + "added_by_quick_add" -> { + setPage("add_friends_button_on_top_bar_on_friends_feed") + setSource(FriendAddSource.SUGGESTED) + } } } }