mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 13:22:42 +01:00
Fix an issue with FileMailReceiver not working well
Summary: Ref T7199. Guess no one has ever tried to reply to file mail. Test Plan: Used `bin/mail receive-test` to send mail to files. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T7199 Differential Revision: https://secure.phabricator.com/D12228
This commit is contained in:
parent
e0acb75be9
commit
7cf726c7f7
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ final class FileMailReceiver extends PhabricatorObjectMailReceiver {
|
||||||
protected function loadObject($pattern, PhabricatorUser $viewer) {
|
protected function loadObject($pattern, PhabricatorUser $viewer) {
|
||||||
$id = (int)trim($pattern, 'F');
|
$id = (int)trim($pattern, 'F');
|
||||||
|
|
||||||
return id(new PhabricatorPasteQuery())
|
return id(new PhabricatorFileQuery())
|
||||||
->setViewer($viewer)
|
->setViewer($viewer)
|
||||||
->withIDs(array($id))
|
->withIDs(array($id))
|
||||||
->executeOne();
|
->executeOne();
|
||||||
|
|
Loading…
Reference in a new issue