@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
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix highlighted code in Diffusion

Summary:
Ref T3141. This is a hacky fix until we can get something a little more sensible in place.

Currently, we sometimes end up with an empty text list, which causes file content to not display. Instead, generate the text list from the corpus if it isn't available.

Test Plan: Looked at a previously-broken source listing, saw code.

Reviewers: btrahan, chad

Reviewed By: chad

CC: aran

Maniphest Tasks: T3141

Differential Revision: https://secure.phabricator.com/D5871

+3
+3
src/applications/diffusion/data/DiffusionFileContent.php
··· 12 12 return $this; 13 13 } 14 14 public function getTextList() { 15 + if (!$this->textList) { 16 + return phutil_split_lines($this->getCorpus(), $retain_ends = false); 17 + } 15 18 return $this->textList; 16 19 } 17 20