1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 09:56:24 +00:00

fix(AnonymiseFileNames): anonymise files in forum posts (#2270)

This commit is contained in:
Masterjoona 2024-03-22 01:42:41 +02:00 committed by Luna
parent 57c3e63cb6
commit 47bf981bf8

View file

@ -78,6 +78,13 @@ export default definePlugin({
"uploadFiles:(...args)=>(args[0].uploads.forEach(f=>f.filename=$self.anonymise(f)),$1(...args)),",
},
},
{
find: "message.attachments",
replacement: {
match: /(\i.uploadFiles\((\i),)/,
replace: "$2.forEach(f=>f.filename=$self.anonymise(f)),$1"
}
},
{
find: ".Messages.ATTACHMENT_UTILITIES_SPOILER",
replacement: {