1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02:41 +01:00

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
This commit is contained in:
epriestley 2016-02-15 15:12:32 -08:00
parent 14ce10c0c2
commit 53b963efdb

View file

@ -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();