@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Slightly simplify some Paste modular transactions

Summary: Modular transactions have slightly more modern ways to express values now.

Test Plan: Looked at transaction record of a paste.

Reviewers: chad, avivey

Reviewed By: avivey

Differential Revision: https://secure.phabricator.com/D16293

+10 -10
+4 -4
src/applications/paste/xaction/PhabricatorPasteLanguageTransaction.php
··· 17 17 return pht( 18 18 "%s updated the paste's language from %s to %s.", 19 19 $this->renderAuthor(), 20 - $this->renderValue($this->getOldValue()), 21 - $this->renderValue($this->getNewValue())); 20 + $this->renderOldValue(), 21 + $this->renderNewValue()); 22 22 } 23 23 24 24 public function getTitleForFeed() { ··· 26 26 '%s updated the language for %s from %s to %s.', 27 27 $this->renderAuthor(), 28 28 $this->renderObject(), 29 - $this->renderValue($this->getOldValue()), 30 - $this->renderValue($this->getNewValue())); 29 + $this->renderOldValue(), 30 + $this->renderNewValue()); 31 31 } 32 32 33 33 }
+6 -6
src/applications/paste/xaction/PhabricatorPasteTitleTransaction.php
··· 15 15 16 16 public function getTitle() { 17 17 return pht( 18 - '%s updated the paste\'s title from "%s" to "%s".', 18 + '%s changed the title of this paste from %s to %s.', 19 19 $this->renderAuthor(), 20 - $this->getOldValue(), 21 - $this->getNewValue()); 20 + $this->renderOldValue(), 21 + $this->renderNewValue()); 22 22 } 23 23 24 24 public function getTitleForFeed() { 25 25 return pht( 26 - '%s updated the title for %s from "%s" to "%s".', 26 + '%s updated the title for %s from %s to %s.', 27 27 $this->renderAuthor(), 28 28 $this->renderObject(), 29 - $this->getOldValue(), 30 - $this->getNewValue()); 29 + $this->renderOldValue(), 30 + $this->renderNewValue()); 31 31 } 32 32 33 33 }