Page MenuHomePhabricator

D15096.id36448.diff
No OneTemporary

D15096.id36448.diff

diff --git a/src/applications/passphrase/storage/PassphraseCredentialTransaction.php b/src/applications/passphrase/storage/PassphraseCredentialTransaction.php
--- a/src/applications/passphrase/storage/PassphraseCredentialTransaction.php
+++ b/src/applications/passphrase/storage/PassphraseCredentialTransaction.php
@@ -81,9 +81,15 @@
'%s updated the secret for this credential.',
$this->renderHandleLink($author_phid));
case self::TYPE_DESTROY:
- return pht(
- '%s destroyed this credential.',
- $this->renderHandleLink($author_phid));
+ if ($new) {
+ return pht(
+ '%s destroyed this credential.',
+ $this->renderHandleLink($author_phid));
+ } else {
+ return pht(
+ '%s restored this credential.',
+ $this->renderHandleLink($author_phid));
+ }
case self::TYPE_LOOKEDATSECRET:
return pht(
'%s examined the secret plaintext for this credential.',

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 18, 1:49 AM (6 d, 16 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7707228
Default Alt Text
D15096.id36448.diff (1012 B)

Event Timeline