fix blurnsfw again

This commit is contained in:
thororen1234 2026-01-23 14:41:14 -05:00
parent f7cbeb933e
commit d320bc439d
No known key found for this signature in database

View file

@ -46,10 +46,12 @@ export default definePlugin({
patches: [
{
find: "}renderEmbeds(",
replacement: [{
match: /\(\)\(\i,\i\.\i(?=\),children:\[\i)/,
replace: "$&+(this.props.channel.nsfw? ' vc-nsfw-img': '')"
}]
replacement: [
{
match: /\(\)\(\i,\i\.\i(?<=this.renderShareClientTheme\(.{0,250})/,
replace: "$&+(this.props.channel.nsfw || $self.settings.store.blurAllChannels ? ' vc-nsfw-img': '')"
}
]
}
],