File to Share feature in chat can cause DOS

Hey guys,

If you attempt to share a file to a discussion for a file already within a large photo directory such as a one with screenshots and then press modification date, the whole server’s threads and cpu goes to 100% with php and database processes.

So what’s the code looking like there? Everytime seems to be the first time, no caching of files to attach eh?

Be safe and have a great day, and thanks for the amazing work community!
OC