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

Add Subscribers to Passphrase

Summary: Fixes T9078, Adds SubscribableInterface to Passphrase.

Test Plan: Create a new passphrase, see myself subscribed. Subscribe to other Passphrases.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T9078

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

+21
+1
src/__phutil_library_map__.php
··· 5189 5189 'PhabricatorApplicationTransactionInterface', 5190 5190 'PhabricatorPolicyInterface', 5191 5191 'PhabricatorFlaggableInterface', 5192 + 'PhabricatorSubscribableInterface', 5192 5193 'PhabricatorDestructibleInterface', 5193 5194 'PhabricatorSpacesInterface', 5194 5195 ),
+2
src/applications/passphrase/controller/PassphraseCredentialViewController.php
··· 193 193 $viewer->renderHandleList($used_by_phids)); 194 194 } 195 195 196 + $properties->invokeWillRenderEvent(); 197 + 196 198 $description = $credential->getDescription(); 197 199 if (strlen($description)) { 198 200 $properties->addSectionHeader(
+18
src/applications/passphrase/storage/PassphraseCredential.php
··· 5 5 PhabricatorApplicationTransactionInterface, 6 6 PhabricatorPolicyInterface, 7 7 PhabricatorFlaggableInterface, 8 + PhabricatorSubscribableInterface, 8 9 PhabricatorDestructibleInterface, 9 10 PhabricatorSpacesInterface { 10 11 ··· 146 147 public function describeAutomaticCapability($capability) { 147 148 return null; 148 149 } 150 + 151 + 152 + /* -( PhabricatorSubscribableInterface )----------------------------------- */ 153 + 154 + 155 + public function isAutomaticallySubscribed($phid) { 156 + return false; 157 + } 158 + 159 + public function shouldShowSubscribersProperty() { 160 + return true; 161 + } 162 + 163 + public function shouldAllowSubscription($phid) { 164 + return true; 165 + } 166 + 149 167 150 168 /* -( PhabricatorDestructibleInterface )----------------------------------- */ 151 169