Page MenuHomePhabricator

D16658.diff
No OneTemporary

D16658.diff

diff --git a/src/applications/conpherence/storage/ConpherenceThread.php b/src/applications/conpherence/storage/ConpherenceThread.php
--- a/src/applications/conpherence/storage/ConpherenceThread.php
+++ b/src/applications/conpherence/storage/ConpherenceThread.php
@@ -284,11 +284,18 @@
$message_title = null;
if ($subtitle_mode == 'message') {
$message_transaction = null;
+ $action_transaction = null;
foreach ($transactions as $transaction) {
switch ($transaction->getTransactionType()) {
case PhabricatorTransactions::TYPE_COMMENT:
$message_transaction = $transaction;
- break 2;
+ break;
+ case ConpherenceTransaction::TYPE_TITLE:
+ case ConpherenceTransaction::TYPE_TOPIC:
+ case ConpherenceTransaction::TYPE_PICTURE:
+ case ConpherenceTransaction::TYPE_PARTICIPANTS:
+ $action_transaction = $transaction;
+ break;
default:
break;
}
@@ -303,6 +310,11 @@
->truncateString(
$message_transaction->getComment()->getContent()));
}
+ if ($action_transaction) {
+ $message_title = id(clone $action_transaction)
+ ->setRenderingTarget(PhabricatorApplicationTransaction::TARGET_TEXT)
+ ->getTitle();
+ }
}
switch ($subtitle_mode) {
case 'recent':

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 12:18 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6741864
Default Alt Text
D16658.diff (1 KB)

Event Timeline