ImageLink: Fix embed showing in gifs (#2417)

main
Sqaaakoi 5 months ago committed by Nuckyz
parent 45c1e42ce4
commit 61235ce994
No known key found for this signature in database
GPG Key ID: 440BF8296E1C4AD9

@ -10,15 +10,15 @@ import definePlugin from "@utils/types";
export default definePlugin({
name: "ImageLink",
description: "Never hide image links in messages, even if it's the only content",
authors: [Devs.Kyuuhachi],
authors: [Devs.Kyuuhachi, Devs.Sqaaakoi],
patches: [
{
find: "isEmbedInline:function()",
find: "unknownUserMentionPlaceholder:",
replacement: {
match: /(?<=isEmbedInline:function\(\)\{return )\i(?=\})/,
replace: "()=>false",
},
},
],
match: /\(0,\i\.isEmbedInline\)\(\i\)/,
replace: "false",
}
}
]
});

Loading…
Cancel
Save