Readme Fix

This commit is contained in:
thororen1234 2024-10-27 02:16:11 -04:00
parent 0d4cfd5e3b
commit 5e482418fd
2 changed files with 3 additions and 0 deletions

View file

@ -16,6 +16,7 @@ export default definePlugin({
authors: [EquicordDevs.thororen],
description: "Fixes file extensions by renaming them to a compatible supported format if possible",
patches: [
// Taken from AnonymiseFileNames
{
find: "instantBatchUpload:",
predicate: () => !Settings.plugins.AnonymiseFileNames.enabled,
@ -25,6 +26,7 @@ export default definePlugin({
"uploadFiles:(...args)=>(args[0].uploads.forEach(f=>f.filename=$self.fixExt(f)),$1(...args)),",
},
},
// Also taken from AnonymiseFileNames
{
find: 'addFilesTo:"message.attachments"',
predicate: () => !Settings.plugins.AnonymiseFileNames.enabled,