@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.

at upstream/main 39 lines 786 B view raw
1<?php 2 3final class PassphraseCredentialLookedAtTransaction 4 extends PassphraseCredentialTransactionType { 5 6 const TRANSACTIONTYPE = 'passphrase:lookedAtSecret'; 7 8 public function generateOldValue($object) { 9 return null; 10 } 11 12 public function getTitle() { 13 return pht( 14 '%s examined the secret plaintext for this credential.', 15 $this->renderAuthor()); 16 } 17 18 public function getTitleForFeed() { 19 return pht( 20 '%s examined the secret plaintext for credential %s.', 21 $this->renderAuthor(), 22 $this->renderObject()); 23 } 24 25 public function getIcon() { 26 return 'fa-eye'; 27 } 28 29 public function getColor() { 30 return 'blue'; 31 } 32 33 public function shouldTryMFA( 34 $object, 35 PhabricatorApplicationTransaction $xaction) { 36 return true; 37 } 38 39}