MediaFile code improvements, preparing to implement multi-attachments
Maybe in the future we can use this for anonymous file uploads too? With some kind of anonymous/pseudonymous profile. That'd be neat.
This commit is contained in:
@@ -73,7 +73,7 @@ class MailHandler
|
||||
$mf = null;
|
||||
|
||||
try {
|
||||
$mf = MediaFile::fromFileHandle($attachment, $user);
|
||||
$mf = MediaFile::fromFilehandle($attachment, $user->getProfile());
|
||||
} catch(ClientException $ce) {
|
||||
$this->error($from, $ce->getMessage());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user