fix: pronoundb profile popout (#1860)

This commit is contained in:
megumin 2023-10-25 16:00:24 +01:00 committed by V
parent e69236c5f8
commit cd06980016

View File

@ -57,8 +57,8 @@ export default definePlugin({
find: ".userTagNoNickname",
replacement: [
{
match: /,(\i)=(\i)\.pronouns/,
replace: ",[$1,vcPronounSource]=$self.useProfilePronouns($2.user.id)"
match: /{user:(\i),[^}]*,pronouns:(\i),[^}]*}=\i;/,
replace: "$&let vcPronounSource;[$2,vcPronounSource]=$self.useProfilePronouns($1.id);"
},
PRONOUN_TOOLTIP_PATCH
]