1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00

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
This commit is contained in:
Ricky Elrod 2012-12-13 13:35:10 -08:00 committed by epriestley
parent 7b09b4d7e7
commit 07401cd99b

View file

@ -86,6 +86,15 @@ final class PhabricatorObjectHandleData {
$objects[$revision->getPHID()] = $revision; $objects[$revision->getPHID()] = $revision;
} }
break; 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: case PhabricatorPHIDConstants::PHID_TYPE_QUES:
$questions = id(new PonderQuestionQuery()) $questions = id(new PonderQuestionQuery())
->setViewer($this->viewer) ->setViewer($this->viewer)