From 53b963efdb41afd8e905d78055bdce5ac4eeb973 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 15 Feb 2016 15:12:32 -0800 Subject: [PATCH] Process slowvote description as remarkup (link images, activate mentions, etc) Summary: Fixes T10361. Test Plan: - Created a poll with an embedded file and a mention of a task. - Verified file was attached properly. - Verified mention appeared on task. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10361 Differential Revision: https://secure.phabricator.com/D15277 --- .../storage/PhabricatorSlowvoteTransaction.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/applications/slowvote/storage/PhabricatorSlowvoteTransaction.php b/src/applications/slowvote/storage/PhabricatorSlowvoteTransaction.php index e45fdb013f..fb1b7fc2f3 100644 --- a/src/applications/slowvote/storage/PhabricatorSlowvoteTransaction.php +++ b/src/applications/slowvote/storage/PhabricatorSlowvoteTransaction.php @@ -97,7 +97,20 @@ final class PhabricatorSlowvoteTransaction return parent::getTitle(); } - public function getTitleForFeed() { + public function getRemarkupBlocks() { + $blocks = parent::getRemarkupBlocks(); + + $type = $this->getTransactionType(); + switch ($type) { + case self::TYPE_DESCRIPTION: + $blocks[] = $this->getNewValue(); + break; + } + + return $blocks; + } + + public function getTitleForFeed() { $author_phid = $this->getAuthorPHID(); $object_phid = $this->getObjectPHID(); -- 2.51.2