Something went wrong. Try again.
@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
Something went wrong. Try again.
704 B · 30 lines
PHP
12345678910111213141516171819202122232425262728293031<?php
final class DiffusionCommitTimelineEngine extends PhabricatorTimelineEngine {
protected function newTimelineView() { $xactions = $this->getTransactions();
$path_ids = array(); foreach ($xactions as $xaction) { if ($xaction->hasComment()) { $path_id = $xaction->getComment()->getPathID(); if ($path_id) { $path_ids[] = $path_id; } } }
$path_map = array(); if ($path_ids) { $path_map = id(new DiffusionPathQuery()) ->withPathIDs($path_ids) ->execute(); $path_map = ipull($path_map, 'path', 'id'); }
return id(new PhabricatorAuditTransactionView()) ->setPathMap($path_map); }}