@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.

Export Ponder question and answer bodies as remarkup blocks during transactions

Summary: Fixes T6189. We currently don't raise these to the editor level, so files, mentions, and project stuff get ignored.

Test Plan: Verified that files added to question and answer bodies end up attached to the relevant objects.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T6189

Differential Revision: https://secure.phabricator.com/D10564

+24
+12
src/applications/ponder/storage/PonderAnswerTransaction.php
··· 33 33 return $phids; 34 34 } 35 35 36 + public function getRemarkupBlocks() { 37 + $blocks = parent::getRemarkupBlocks(); 38 + 39 + switch ($this->getTransactionType()) { 40 + case self::TYPE_CONTENT: 41 + $blocks[] = $this->getNewValue(); 42 + break; 43 + } 44 + 45 + return $blocks; 46 + } 47 + 36 48 public function getTitle() { 37 49 $author_phid = $this->getAuthorPHID(); 38 50 $object_phid = $this->getObjectPHID();
+12
src/applications/ponder/storage/PonderQuestionTransaction.php
··· 37 37 return $phids; 38 38 } 39 39 40 + public function getRemarkupBlocks() { 41 + $blocks = parent::getRemarkupBlocks(); 42 + 43 + switch ($this->getTransactionType()) { 44 + case self::TYPE_CONTENT: 45 + $blocks[] = $this->getNewValue(); 46 + break; 47 + } 48 + 49 + return $blocks; 50 + } 51 + 40 52 public function getTitle() { 41 53 $author_phid = $this->getAuthorPHID(); 42 54 $object_phid = $this->getObjectPHID();