1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 05:12:41 +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:
epriestley 2015-03-31 16:47:58 -07:00
parent e0acb75be9
commit 7cf726c7f7

View file

@ -14,7 +14,7 @@ final class FileMailReceiver extends PhabricatorObjectMailReceiver {
protected function loadObject($pattern, PhabricatorUser $viewer) {
$id = (int)trim($pattern, 'F');
return id(new PhabricatorPasteQuery())
return id(new PhabricatorFileQuery())
->setViewer($viewer)
->withIDs(array($id))
->executeOne();