[ATTACHMENTS] Always store in the same location

This commit is contained in:
2021-08-10 20:24:11 +01:00
committed by Hugo Sales
parent 3f61537140
commit f5175cc59d
4 changed files with 6 additions and 15 deletions

View File

@@ -122,8 +122,7 @@ END;
$filesize = $f->getSize();
Event::handle('EnforceQuota', [$actor_id, $filesize]);
$processed_attachments[] = GSFile::sanitizeAndStoreFileAsAttachment(
$f,
dest_dir: Common::config('attachments', 'dir')
$f
);
}