From 07401cd99bf88e611c9d98a5cdc360aa4f22b655 Mon Sep 17 00:00:00 2001 From: Ricky Elrod Date: Thu, 13 Dec 2012 13:35:10 -0800 Subject: [PATCH] Make Phriction edits show in the feed. Summary: Add a WIKI block to the switch in PhabricatorObjectHandleData->loadObjects(). Test Plan: Went to /feed/ and saw my wiki edit stories. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4180 --- .../phid/handle/PhabricatorObjectHandleData.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/applications/phid/handle/PhabricatorObjectHandleData.php b/src/applications/phid/handle/PhabricatorObjectHandleData.php index 730d9318a2..937d5d0dd9 100644 --- a/src/applications/phid/handle/PhabricatorObjectHandleData.php +++ b/src/applications/phid/handle/PhabricatorObjectHandleData.php @@ -86,6 +86,15 @@ final class PhabricatorObjectHandleData { $objects[$revision->getPHID()] = $revision; } break; + case PhabricatorPHIDConstants::PHID_TYPE_WIKI: + $document_dao = new PhrictionDocument(); + $documents = $document_dao->loadAllWhere( + 'phid IN (%Ls)', + $phids); + foreach ($documents as $document) { + $objects[$document->getPHID()] = $document; + } + break; case PhabricatorPHIDConstants::PHID_TYPE_QUES: $questions = id(new PonderQuestionQuery()) ->setViewer($this->viewer)