Differential D25191 Diff 657 src/applications/transactions/storage/PhabricatorApplicationTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/storage/PhabricatorApplicationTransaction.php
Show First 20 Lines • Show All 1,027 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
return pht( | return pht( | ||||
'%s edited subscriber(s), added %d: %s; removed %d: %s.', | '%s edited subscriber(s), added %d: %s; removed %d: %s.', | ||||
$this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
count($add), | count($add), | ||||
$this->renderSubscriberList($add, 'add'), | $this->renderSubscriberList($add, 'add'), | ||||
count($rem), | count($rem), | ||||
$this->renderSubscriberList($rem, 'rem')); | $this->renderSubscriberList($rem, 'rem')); | ||||
} else if ($add) { | } else if ($add) { | ||||
if ($this->isSelfSubscription()) { | |||||
return pht( | |||||
'%s subscribed.', | |||||
$this->renderHandleLink($author_phid)); | |||||
} | |||||
return pht( | return pht( | ||||
'%s added %d subscriber(s): %s.', | '%s added %d subscriber(s): %s.', | ||||
$this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
count($add), | count($add), | ||||
$this->renderSubscriberList($add, 'add')); | $this->renderSubscriberList($add, 'add')); | ||||
} else if ($rem) { | } else if ($rem) { | ||||
if ($this->isSelfSubscription()) { | |||||
return pht( | |||||
'%s unsubscribed.', | |||||
$this->renderHandleLink($author_phid)); | |||||
} | |||||
return pht( | return pht( | ||||
'%s removed %d subscriber(s): %s.', | '%s removed %d subscriber(s): %s.', | ||||
$this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
count($rem), | count($rem), | ||||
$this->renderSubscriberList($rem, 'rem')); | $this->renderSubscriberList($rem, 'rem')); | ||||
} else { | } else { | ||||
// This is used when rendering previews, before the user actually | // This is used when rendering previews, before the user actually | ||||
// selects any CCs. | // selects any CCs. | ||||
▲ Show 20 Lines • Show All 987 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0