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

Allow linking to passphrase credential via remarkup

Summary: Fixes T5421, add linking to passphrase credentials

Test Plan: Open task, add a comment of '{K1}' where K1 is a passphrase credential. Preview and actual comment should be link to credential with the content of credential.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T5421

Differential Revision: https://secure.phabricator.com/D9725

+27
+2
src/__phutil_library_map__.php
··· 1089 1089 'PassphraseDAO' => 'applications/passphrase/storage/PassphraseDAO.php', 1090 1090 'PassphrasePHIDTypeCredential' => 'applications/passphrase/phid/PassphrasePHIDTypeCredential.php', 1091 1091 'PassphrasePasswordKey' => 'applications/passphrase/keys/PassphrasePasswordKey.php', 1092 + 'PassphraseRemarkupRule' => 'applications/passphrase/remarkup/PassphraseRemarkupRule.php', 1092 1093 'PassphraseSSHKey' => 'applications/passphrase/keys/PassphraseSSHKey.php', 1093 1094 'PassphraseSecret' => 'applications/passphrase/storage/PassphraseSecret.php', 1094 1095 'PasteCapabilityDefaultView' => 'applications/paste/capability/PasteCapabilityDefaultView.php', ··· 3868 3869 'PassphraseDAO' => 'PhabricatorLiskDAO', 3869 3870 'PassphrasePHIDTypeCredential' => 'PhabricatorPHIDType', 3870 3871 'PassphrasePasswordKey' => 'PassphraseAbstractKey', 3872 + 'PassphraseRemarkupRule' => 'PhabricatorRemarkupRuleObject', 3871 3873 'PassphraseSSHKey' => 'PassphraseAbstractKey', 3872 3874 'PassphraseSecret' => 'PassphraseDAO', 3873 3875 'PasteCapabilityDefaultView' => 'PhabricatorPolicyCapability',
+6
src/applications/passphrase/application/PhabricatorApplicationPassphrase.php
··· 45 45 )); 46 46 } 47 47 48 + public function getRemarkupRules() { 49 + return array( 50 + new PassphraseRemarkupRule(), 51 + ); 52 + } 53 + 48 54 }
+19
src/applications/passphrase/remarkup/PassphraseRemarkupRule.php
··· 1 + <?php 2 + 3 + final class PassphraseRemarkupRule 4 + extends PhabricatorRemarkupRuleObject { 5 + 6 + protected function getObjectNamePrefix() { 7 + return 'K'; 8 + } 9 + 10 + protected function loadObjects(array $ids) { 11 + $viewer = $this->getEngine()->getConfig('viewer'); 12 + 13 + return id(new PassphraseCredentialQuery()) 14 + ->setViewer($viewer) 15 + ->withIDs($ids) 16 + ->execute(); 17 + 18 + } 19 + }