Skip to content

Commit

Permalink
ImageLink: Fix embed showing in gifs (#2417)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sqaaakoi authored and Nuckyz committed May 5, 2024
1 parent 45c1e42 commit 61235ce
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/plugins/imageLink/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
}
]
});

0 comments on commit 61235ce

Please sign in to comment.