Select the types of activity you want to include in your feed.
@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
···11+<?php
22+33+final class PhameBlogSearchConduitAPIMethod
44+ extends PhabricatorSearchEngineAPIMethod {
55+66+ public function getAPIMethodName() {
77+ return 'phame.blog.search';
88+ }
99+1010+ public function newSearchEngine() {
1111+ return new PhameBlogSearchEngine();
1212+ }
1313+1414+ public function getMethodSummary() {
1515+ return pht('Read information about blogs.');
1616+ }
1717+1818+}
+35-1
src/applications/phame/storage/PhameBlog.php
···88 PhabricatorFlaggableInterface,
99 PhabricatorProjectInterface,
1010 PhabricatorDestructibleInterface,
1111- PhabricatorApplicationTransactionInterface {
1111+ PhabricatorApplicationTransactionInterface,
1212+ PhabricatorConduitResultInterface {
12131314 const MARKUP_FIELD_DESCRIPTION = 'markup:description';
1415···341342342343 public function shouldAllowSubscription($phid) {
343344 return true;
345345+ }
346346+347347+348348+/* -( PhabricatorConduitResultInterface )---------------------------------- */
349349+350350+351351+ public function getFieldSpecificationsForConduit() {
352352+ return array(
353353+ id(new PhabricatorConduitSearchFieldSpecification())
354354+ ->setKey('name')
355355+ ->setType('string')
356356+ ->setDescription(pht('The name of the blog.')),
357357+ id(new PhabricatorConduitSearchFieldSpecification())
358358+ ->setKey('description')
359359+ ->setType('string')
360360+ ->setDescription(pht('Blog description.')),
361361+ id(new PhabricatorConduitSearchFieldSpecification())
362362+ ->setKey('status')
363363+ ->setType('string')
364364+ ->setDescription(pht('Archived or active status.')),
365365+ );
366366+ }
367367+368368+ public function getFieldValuesForConduit() {
369369+ return array(
370370+ 'name' => $this->getName(),
371371+ 'description' => $this->getDescription(),
372372+ 'status' => $this->getStatus(),
373373+ );
374374+ }
375375+376376+ public function getConduitSearchAttachments() {
377377+ return array();
344378 }
345379346380