From cd06980016b2646d4941b3a5bcf24278cd06123f Mon Sep 17 00:00:00 2001 From: megumin Date: Wed, 25 Oct 2023 16:00:24 +0100 Subject: [PATCH] fix: pronoundb profile popout (#1860) --- src/plugins/pronoundb/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/pronoundb/index.ts b/src/plugins/pronoundb/index.ts index bd5b2c5a..6eac8669 100644 --- a/src/plugins/pronoundb/index.ts +++ b/src/plugins/pronoundb/index.ts @@ -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 ]