fix(AnonymiseFileNames): anonymise files in forum posts (#2270)
This commit is contained in:
parent
021948c919
commit
04d5423b08
1 changed files with 7 additions and 0 deletions
|
@ -78,6 +78,13 @@ export default definePlugin({
|
||||||
"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",
|
||||||
|
replacement: {
|
||||||
|
match: /(\i.uploadFiles\((\i),)/,
|
||||||
|
replace: "$2.forEach(f=>f.filename=$self.anonymise(f)),$1"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
find: ".Messages.ATTACHMENT_UTILITIES_SPOILER",
|
find: ".Messages.ATTACHMENT_UTILITIES_SPOILER",
|
||||||
replacement: {
|
replacement: {
|
||||||
|
|
Loading…
Reference in a new issue