From 7cf726c7f76974598ccd5adeddcf4f7921e12fc0 Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 31 Mar 2015 16:47:58 -0700 Subject: [PATCH] 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 --- src/applications/files/mail/FileMailReceiver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/files/mail/FileMailReceiver.php b/src/applications/files/mail/FileMailReceiver.php index 074bbe6051..d6bb5c7310 100644 --- a/src/applications/files/mail/FileMailReceiver.php +++ b/src/applications/files/mail/FileMailReceiver.php @@ -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();