Page MenuHomePhabricator

D14646.id35429.diff
No OneTemporary

D14646.id35429.diff

diff --git a/src/applications/phame/storage/PhamePostTransaction.php b/src/applications/phame/storage/PhamePostTransaction.php
--- a/src/applications/phame/storage/PhamePostTransaction.php
+++ b/src/applications/phame/storage/PhamePostTransaction.php
@@ -206,7 +206,7 @@
}
if (strlen($text)) {
- return PhabricatorMarkupEngine::summarize($text);
+ return parent::getRemarkupBodyForFeed($text);
}
return parent::getBodyForFeed($story);
diff --git a/src/applications/transactions/storage/PhabricatorApplicationTransaction.php b/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
--- a/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
+++ b/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
@@ -981,6 +981,15 @@
return $body;
}
+ public function getRemarkupBodyForFeed($text) {
+ if (strlen($text)) {
+ $text = PhabricatorMarkupEngine::summarize($text);
+ return new PHUIRemarkupView($this->viewer, $text);
+ }
+
+ return $text;
+ }
+
public function getActionStrength() {
if ($this->isInlineCommentTransaction()) {
return 0.25;

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 30, 3:48 AM (6 d, 15 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7726680
Default Alt Text
D14646.id35429.diff (1 KB)

Event Timeline