Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15392609
D13888.id33525.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D13888.id33525.diff
View Options
diff --git a/src/applications/countdown/editor/PhabricatorCountdownEditor.php b/src/applications/countdown/editor/PhabricatorCountdownEditor.php
--- a/src/applications/countdown/editor/PhabricatorCountdownEditor.php
+++ b/src/applications/countdown/editor/PhabricatorCountdownEditor.php
@@ -147,12 +147,10 @@
public function getMailTagsMap() {
return array(
- PhabricatorCountdownTransaction::MAILTAG_TITLE =>
- pht('Someone changes the countdown title.'),
- PhabricatorCountdownTransaction::MAILTAG_DESCRIPTION =>
- pht('Someone changes the countdown description.'),
- PhabricatorCountdownTransaction::MAILTAG_EPOCH =>
- pht('Someone changes the countdown end date.'),
+ PhabricatorCountdownTransaction::MAILTAG_DETAILS =>
+ pht('Someone changes the countdown details.'),
+ PhabricatorCountdownTransaction::MAILTAG_COMMENT =>
+ pht('Someone comments on a countdown.'),
PhabricatorCountdownTransaction::MAILTAG_OTHER =>
pht('Other countdown activity not listed above occurs.'),
);
diff --git a/src/applications/countdown/storage/PhabricatorCountdownTransaction.php b/src/applications/countdown/storage/PhabricatorCountdownTransaction.php
--- a/src/applications/countdown/storage/PhabricatorCountdownTransaction.php
+++ b/src/applications/countdown/storage/PhabricatorCountdownTransaction.php
@@ -7,9 +7,8 @@
const TYPE_EPOCH = 'countdown:epoch';
const TYPE_DESCRIPTION = 'countdown:description';
- const MAILTAG_TITLE = 'countdown:title';
- const MAILTAG_EPOCH = 'countdown:epoch';
- const MAILTAG_DESCRIPTION = 'countdown:description';
+ const MAILTAG_DETAILS = 'countdown:details';
+ const MAILTAG_COMMENT = 'countdown:comment';
const MAILTAG_OTHER = 'countdown:other';
public function getApplicationName() {
@@ -135,14 +134,13 @@
$tags = parent::getMailTags();
switch ($this->getTransactionType()) {
- case self::TYPE_TITLE:
- $tags[] = self::MAILTAG_TITLE;
+ case PhabricatorTransactions::TYPE_COMMENT:
+ $tags[] = self::MAILTAG_COMMENT;
break;
+ case self::TYPE_TITLE:
case self::TYPE_EPOCH:
- $tags[] = self::MAILTAG_EPOCH;
- break;
case self::TYPE_DESCRIPTION:
- $tags[] = self::MAILTAG_DESCRIPTION;
+ $tags[] = self::MAILTAG_DETAILS;
break;
default:
$tags[] = self::MAILTAG_OTHER;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 16, 4:18 PM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7693788
Default Alt Text
D13888.id33525.diff (2 KB)
Attached To
Mode
D13888: Simplify Countdown mailtags
Attached
Detach File
Event Timeline
Log In to Comment