@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class DiffusionCommitTimelineEngine
4 extends PhabricatorTimelineEngine {
5
6 protected function newTimelineView() {
7 $xactions = $this->getTransactions();
8
9 $path_ids = array();
10 foreach ($xactions as $xaction) {
11 if ($xaction->hasComment()) {
12 $path_id = $xaction->getComment()->getPathID();
13 if ($path_id) {
14 $path_ids[] = $path_id;
15 }
16 }
17 }
18
19 $path_map = array();
20 if ($path_ids) {
21 $path_map = id(new DiffusionPathQuery())
22 ->withPathIDs($path_ids)
23 ->execute();
24 $path_map = ipull($path_map, 'path', 'id');
25 }
26
27 return id(new PhabricatorAuditTransactionView())
28 ->setPathMap($path_map);
29 }
30}