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();