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

Always set a typeahead result limit, even for non-browse queries

Ref T4100. The limit on People queries was inadvertently removed.

+5 -4
+5 -4
src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
··· 43 43 $composite = new PhabricatorTypeaheadRuntimeCompositeDatasource(); 44 44 $composite->addDatasource($source); 45 45 46 + $hard_limit = 1000; 47 + $limit = 100; 48 + 46 49 $composite 47 50 ->setViewer($viewer) 48 51 ->setQuery($query) 49 - ->setRawQuery($raw_query); 52 + ->setRawQuery($raw_query) 53 + ->setLimit($limit); 50 54 51 - $hard_limit = 1000; 52 - $limit = 100; 53 55 54 56 if ($is_browse) { 55 57 if (!$composite->isBrowsable()) { ··· 63 65 } 64 66 65 67 $composite 66 - ->setLimit($limit + 1) 67 68 ->setOffset($offset); 68 69 } 69 70