@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 PholioMockTimelineEngine
4 extends PhabricatorTimelineEngine {
5
6 protected function newTimelineView() {
7 $viewer = $this->getViewer();
8 $object = $this->getObject();
9
10 $images = id(new PholioImageQuery())
11 ->setViewer($viewer)
12 ->withMocks(array($object))
13 ->needInlineComments(true)
14 ->execute();
15
16 $object->attachImages($images);
17
18 return id(new PholioTransactionView())
19 ->setMock($object);
20 }
21
22}