Page MenuHomePhabricator

D15543.id37469.diff
No OneTemporary

D15543.id37469.diff

diff --git a/src/view/phui/PHUITimelineView.php b/src/view/phui/PHUITimelineView.php
--- a/src/view/phui/PHUITimelineView.php
+++ b/src/view/phui/PHUITimelineView.php
@@ -224,7 +224,7 @@
$user_phids = array();
foreach ($events as $key => $event) {
- if (!$event->hasChildren()) {
+ if ($event->getIsPreview() || $event->getHideCommentOptions()) {
// This is a minor event, so we don't have space to show badges.
unset($events[$key]);
continue;
@@ -259,7 +259,9 @@
$awards = mgroup($awards, 'getRecipientPHID');
foreach ($events as $event) {
+
$author_awards = idx($awards, $event->getAuthorPHID(), array());
+
$badges = array();
foreach ($author_awards as $award) {
$badge = $award->getBadge();

File Metadata

Mime Type
text/plain
Expires
Oct 19 2024, 4:33 PM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6733003
Default Alt Text
D15543.id37469.diff (787 B)

Event Timeline