mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-22 19:49:02 +01:00
Hide "Signed with MFA" stories from feed
Summary: See <https://discourse.phabricator-community.org/t/sign-with-mfa-action-on-differential-revisions-creates-strange-feed-entries/2346>. If you "Sign with MFA" and only add a comment, we can produce a weird notification and feed story. Hide these stories from feed since they're broadly not interesting. Test Plan: - Used "sign with MFA" and only posted a comment. - Observed feed. - Before: Janky "untitled story". - After: Sensible "added a comment" story. Reviewers: amckinley Reviewed By: amckinley Differential Revision: https://secure.phabricator.com/D20071
This commit is contained in:
parent
6bcfc212eb
commit
612e9c6e09
1 changed files with 2 additions and 1 deletions
|
@ -740,8 +740,9 @@ abstract class PhabricatorApplicationTransaction
|
||||||
|
|
||||||
switch ($this->getTransactionType()) {
|
switch ($this->getTransactionType()) {
|
||||||
case PhabricatorTransactions::TYPE_TOKEN:
|
case PhabricatorTransactions::TYPE_TOKEN:
|
||||||
|
case PhabricatorTransactions::TYPE_MFA:
|
||||||
return true;
|
return true;
|
||||||
case PhabricatorTransactions::TYPE_EDGE:
|
case PhabricatorTransactions::TYPE_EDGE:
|
||||||
$edge_type = $this->getMetadataValue('edge:type');
|
$edge_type = $this->getMetadataValue('edge:type');
|
||||||
switch ($edge_type) {
|
switch ($edge_type) {
|
||||||
case PhabricatorObjectMentionsObjectEdgeType::EDGECONST:
|
case PhabricatorObjectMentionsObjectEdgeType::EDGECONST:
|
||||||
|
|
Loading…
Add table
Reference in a new issue