mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 09:12:41 +01:00
Conpherence - turn on mentions interface for Conpherence rooms / messages
Summary: Fixes T7756. This is the last little stray bit, though finishing T7757 also helps this feature IMO. Test Plan: said "ZXX is the best" in comment on DXX and saw proper mention transaction on ZXX Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T7756 Differential Revision: https://secure.phabricator.com/D12405
This commit is contained in:
parent
ca5909cac6
commit
295308de5b
3 changed files with 4 additions and 1 deletions
|
@ -4,6 +4,7 @@ final class ConpherenceThread extends ConpherenceDAO
|
||||||
implements
|
implements
|
||||||
PhabricatorPolicyInterface,
|
PhabricatorPolicyInterface,
|
||||||
PhabricatorApplicationTransactionInterface,
|
PhabricatorApplicationTransactionInterface,
|
||||||
|
PhabricatorMentionableInterface,
|
||||||
PhabricatorDestructibleInterface {
|
PhabricatorDestructibleInterface {
|
||||||
|
|
||||||
protected $title;
|
protected $title;
|
||||||
|
|
|
@ -115,6 +115,7 @@ final class ConpherenceTransactionView extends AphrontView {
|
||||||
case PhabricatorTransactions::TYPE_VIEW_POLICY:
|
case PhabricatorTransactions::TYPE_VIEW_POLICY:
|
||||||
case PhabricatorTransactions::TYPE_EDIT_POLICY:
|
case PhabricatorTransactions::TYPE_EDIT_POLICY:
|
||||||
case PhabricatorTransactions::TYPE_JOIN_POLICY:
|
case PhabricatorTransactions::TYPE_JOIN_POLICY:
|
||||||
|
case PhabricatorTransactions::TYPE_EDGE:
|
||||||
$content = $transaction->getTitle();
|
$content = $transaction->getTitle();
|
||||||
$transaction_view->addClass('conpherence-edited');
|
$transaction_view->addClass('conpherence-edited');
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -221,7 +221,8 @@ abstract class PhabricatorApplicationTransactionEditor
|
||||||
$types[] = PhabricatorTransactions::TYPE_TOKEN;
|
$types[] = PhabricatorTransactions::TYPE_TOKEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->object instanceof PhabricatorProjectInterface) {
|
if ($this->object instanceof PhabricatorProjectInterface ||
|
||||||
|
$this->object instanceof PhabricatorMentionableInterface) {
|
||||||
$types[] = PhabricatorTransactions::TYPE_EDGE;
|
$types[] = PhabricatorTransactions::TYPE_EDGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue