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
Tue, Nov 5, 7:42 AM (2 w, 4 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6713052
Default Alt Text
D14748.id35670.diff (1 KB)

Event Timeline