Page MenuHomePhabricator

D14748.id35670.diff
No OneTemporary

D14748.id35670.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
@@ -190,26 +190,12 @@
}
public function getRemarkupBodyForFeed(PhabricatorFeedStory $story) {
- $text = null;
switch ($this->getTransactionType()) {
- case self::TYPE_TITLE:
- if ($this->getOldValue() === null) {
- $post = $story->getPrimaryObject();
- $text = $post->getBody();
- }
- break;
- case self::TYPE_VISIBILITY:
- if ($this->getNewValue() == PhameConstants::VISIBILITY_PUBLISHED) {
- $post = $story->getPrimaryObject();
- $text = $post->getBody();
- }
- break;
case self::TYPE_BODY:
- $text = $this->getNewValue();
- break;
+ return $this->getNewValue();
}
- return $text;
+ return null;
}
public function getColor() {

File Metadata

Mime Type
text/plain
Expires
Thu, May 9, 1:20 AM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6273559
Default Alt Text
D14748.id35670.diff (1 KB)

Event Timeline