aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/pronoundb
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-10-06 18:01:19 +0200
committerVendicated <vendicated@riseup.net>2023-10-06 18:01:19 +0200
commitdf214e1e93bf7bc6c7b768df75f10f764a41ff13 (patch)
tree9060727837551727d7a8dadab964cf74925a4700 /src/plugins/pronoundb
parent47a39a062e4437c3e18b1f5cb09f4abe82d0bb82 (diff)
downloadVencord-df214e1e93bf7bc6c7b768df75f10f764a41ff13.tar.gz
Vencord-df214e1e93bf7bc6c7b768df75f10f764a41ff13.tar.bz2
Vencord-df214e1e93bf7bc6c7b768df75f10f764a41ff13.zip
chore: remove legacy code
Diffstat (limited to 'src/plugins/pronoundb')
-rw-r--r--src/plugins/pronoundb/index.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/pronoundb/index.ts b/src/plugins/pronoundb/index.ts
index 52fefdc..c9dc272 100644
--- a/src/plugins/pronoundb/index.ts
+++ b/src/plugins/pronoundb/index.ts
@@ -68,8 +68,7 @@ export default definePlugin({
find: ".USER_PROFILE_ACTIVITY",
replacement: [
{
- /* FIXME: old name is getGlobalName, new name is getName. Remove optional Global once stable has also migrated */
- match: /\.get(?:Global)?Name\(\i\);(?<=displayProfile.{0,200})/,
+ match: /\.getName\(\i\);(?<=displayProfile.{0,200})/,
replace: "$&const [vcPronounce,vcPronounSource]=$self.useProfilePronouns(arguments[0].user.id,true);if(arguments[0].displayProfile&&vcPronounce)arguments[0].displayProfile.pronouns=vcPronounce;"
},
PRONOUN_TOOLTIP_PATCH