public function shouldHideForFeed() { switch ($this->getTransactionType()) { case self::TYPE_HASWORKBOARD: case self::TYPE_DEFAULT_SORT: case self::TYPE_DEFAULT_FILTER: return true; } return parent::shouldHideForFeed(); }
public function shouldHideForFeed() { switch ($this->getTransactionType()) { case self::TYPE_MOVE_TO: case self::TYPE_MOVE_AWAY: return true; case self::TYPE_TITLE: return $this->getMetadataValue('stub:create:phid', false); } return parent::shouldHideForFeed(); }
public function shouldHideForFeed() { switch ($this->getTransactionType()) { case self::TYPE_UNBLOCK: // Hide "alice created X, a task blocking Y." from feed because it // will almost always appear adjacent to "alice created Y". $is_new = $this->getMetadataValue('blocker.new'); if ($is_new) { return true; } break; case self::TYPE_POINTS: return true; } return parent::shouldHideForFeed(); }