@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 34 lines 712 B view raw
1<?php 2 3final class PhabricatorLiskFulltextEngineExtension 4 extends PhabricatorFulltextEngineExtension { 5 6 const EXTENSIONKEY = 'lisk'; 7 8 public function getExtensionName() { 9 return pht('Lisk Builtin Properties'); 10 } 11 12 public function shouldEnrichFulltextObject($object) { 13 if (!($object instanceof PhabricatorLiskDAO)) { 14 return false; 15 } 16 17 if (!$object->getConfigOption(LiskDAO::CONFIG_TIMESTAMPS)) { 18 return false; 19 } 20 21 return true; 22 } 23 24 public function enrichFulltextObject( 25 $object, 26 PhabricatorSearchAbstractDocument $document) { 27 28 $document 29 ->setDocumentCreated($object->getDateCreated()) 30 ->setDocumentModified($object->getDateModified()); 31 32 } 33 34}