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

@ -47,6 +47,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
- EquicordCSS by thororen, Panniku, Dablulite, Coolesding, MiniDiscordThemes, LuckFire, gold_me
- ExportContacts by dat_insanity
- FindReply by newwares
- FixFileExtensions by thororen
- FrequentQuickSwitcher by Samwich
- FriendshipRanks by Samwich
- FriendTags by Samwich

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,