@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 recaptime-dev/main 29 lines 762 B view raw
1<?php 2 3final class PhabricatorSubscriptionsRemoveSelfHeraldAction 4 extends PhabricatorSubscriptionsHeraldAction { 5 6 const ACTIONCONST = 'subscribers.self.remove'; 7 8 public function getHeraldActionName() { 9 return pht('Remove me as a subscriber'); 10 } 11 12 public function supportsRuleType($rule_type) { 13 return ($rule_type == HeraldRuleTypeConfig::RULE_TYPE_PERSONAL); 14 } 15 16 public function applyEffect($object, HeraldEffect $effect) { 17 $phid = $effect->getRule()->getAuthorPHID(); 18 return $this->applySubscribe(array($phid), $is_add = false); 19 } 20 21 public function getHeraldActionStandardType() { 22 return self::STANDARD_NONE; 23 } 24 25 public function renderActionDescription($value) { 26 return pht('Remove rule author as subscriber.'); 27 } 28 29}