diff --git a/src/plugins/decor/index.tsx b/src/plugins/decor/index.tsx index fe1f6dcb..c6cd895f 100644 --- a/src/plugins/decor/index.tsx +++ b/src/plugins/decor/index.tsx @@ -91,7 +91,7 @@ export default definePlugin({ replacement: [ // Use Decor avatar decoration hook { - match: /(?<=\i\)\({avatarDecoration:)(\i).avatarDecoration(?=,)/, + match: /(?<=\i\)\({avatarDecoration:)(\i)(?=,)(?<=currentUser:(\i).+?)/, replace: "$self.useUserDecorAvatarDecoration($1)??$&" } ]