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
This commit is contained in:
		@@ -33,6 +33,18 @@ final class PonderAnswerTransaction
 | 
			
		||||
    return $phids;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  public function getRemarkupBlocks() {
 | 
			
		||||
    $blocks = parent::getRemarkupBlocks();
 | 
			
		||||
 | 
			
		||||
    switch ($this->getTransactionType()) {
 | 
			
		||||
      case self::TYPE_CONTENT:
 | 
			
		||||
        $blocks[] = $this->getNewValue();
 | 
			
		||||
        break;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return $blocks;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  public function getTitle() {
 | 
			
		||||
    $author_phid = $this->getAuthorPHID();
 | 
			
		||||
    $object_phid = $this->getObjectPHID();
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,18 @@ final class PonderQuestionTransaction
 | 
			
		||||
    return $phids;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  public function getRemarkupBlocks() {
 | 
			
		||||
    $blocks = parent::getRemarkupBlocks();
 | 
			
		||||
 | 
			
		||||
    switch ($this->getTransactionType()) {
 | 
			
		||||
      case self::TYPE_CONTENT:
 | 
			
		||||
        $blocks[] = $this->getNewValue();
 | 
			
		||||
        break;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return $blocks;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  public function getTitle() {
 | 
			
		||||
    $author_phid = $this->getAuthorPHID();
 | 
			
		||||
    $object_phid = $this->getObjectPHID();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user