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