From 81fbe676d788841cc8580815e2e2067759961fbe Mon Sep 17 00:00:00 2001 From: 1024x2 Date: Sat, 20 Jul 2024 15:21:28 +0100 Subject: Update patches --- 0001-Remove-donator-badges.patch | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to '0001-Remove-donator-badges.patch') diff --git a/0001-Remove-donator-badges.patch b/0001-Remove-donator-badges.patch index 795d546..35c3748 100644 --- a/0001-Remove-donator-badges.patch +++ b/0001-Remove-donator-badges.patch @@ -1,7 +1,7 @@ -From 396ec536cbdbf8bf2af1f22deee2553baf20d59f Mon Sep 17 00:00:00 2001 +From 13aa6fecd2481e4d9b589b70f9bf2cb062be85e1 Mon Sep 17 00:00:00 2001 From: 1024x2 <2pow11@gmail.com> Date: Wed, 24 Apr 2024 23:30:05 +0100 -Subject: [PATCH 1/6] Remove donator badges +Subject: [PATCH 1/8] Remove donator badges It makes a request to an API hosted by the Vencord developer, without any option to turn it off. This raises privacy concerns. @@ -12,11 +12,11 @@ It's easiest to just get rid of the feature entirely. 2 files changed, 1 insertion(+), 97 deletions(-) diff --git a/src/api/Badges.ts b/src/api/Badges.ts -index 24c68c4e..4e1e9cff 100644 +index 7a041f1e..fefbd439 100644 --- a/src/api/Badges.ts +++ b/src/api/Badges.ts -@@ -78,8 +78,7 @@ export function _getBadges(args: BadgeUserArgs) { - : badges.push({ ...badge, ...args }); +@@ -90,8 +90,7 @@ export function _getBadges(args: BadgeUserArgs) { + : badges.push(...b); } } - const donorBadges = (Plugins.BadgeAPI as unknown as typeof import("../plugins/_api/badges").default).getDonorBadges(args.userId); @@ -26,7 +26,7 @@ index 24c68c4e..4e1e9cff 100644 return badges; } diff --git a/src/plugins/_api/badges/index.tsx b/src/plugins/_api/badges/index.tsx -index d8e391ae..f31af4c6 100644 +index 89a992ac..642769c8 100644 --- a/src/plugins/_api/badges/index.tsx +++ b/src/plugins/_api/badges/index.tsx @@ -43,19 +43,6 @@ const ContributorBadge: ProfileBadge = { @@ -70,7 +70,7 @@ index d8e391ae..f31af4c6 100644 }, getBadges(props: { userId: string; user?: User; guildId: string; }) { -@@ -150,74 +125,4 @@ export default definePlugin({ +@@ -152,74 +127,4 @@ export default definePlugin({ const Component = badge.component!; return ; }, { noop: true }), -- cgit v1.2.3