Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / people / xaction / PhabricatorUserNotifyTransaction.php
blob4a527f82655df8e3d28fa846d7830f1479aa3654
1 <?php
3 final class PhabricatorUserNotifyTransaction
4 extends PhabricatorUserTransactionType {
6 const TRANSACTIONTYPE = 'notify';
8 public function generateOldValue($object) {
9 return null;
12 public function generateNewValue($object, $value) {
13 return $value;
16 public function getTitle() {
17 return pht(
18 '%s sent this user a test notification.',
19 $this->renderAuthor());
22 public function getTitleForFeed() {
23 return $this->getNewValue();
26 public function shouldHideForNotifications() {
27 return false;
30 public function shouldHideForFeed() {
31 return true;
34 public function shouldHideForMail() {
35 return true;