@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at recaptime-dev/main 33 lines 864 B view raw
1<?php 2 3final class PhamePostFulltextEngine 4 extends PhabricatorFulltextEngine { 5 6 protected function buildAbstractDocument( 7 PhabricatorSearchAbstractDocument $document, 8 $object) { 9 10 $post = $object; 11 12 $document->setDocumentTitle($post->getTitle()); 13 14 $document->addField( 15 PhabricatorSearchDocumentFieldType::FIELD_BODY, 16 $post->getBody()); 17 18 $document->addRelationship( 19 PhabricatorSearchRelationship::RELATIONSHIP_AUTHOR, 20 $post->getBloggerPHID(), 21 PhabricatorPeopleUserPHIDType::TYPECONST, 22 $post->getDateCreated()); 23 24 $document->addRelationship( 25 $post->isArchived() 26 ? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED 27 : PhabricatorSearchRelationship::RELATIONSHIP_OPEN, 28 $post->getPHID(), 29 PhabricatorPhamePostPHIDType::TYPECONST, 30 PhabricatorTime::getNow()); 31 } 32 33}