Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / diffusion / remarkup / DiffusionRepositoryRemarkupRule.php
blobc845b64a46a29539297df06e816d208985542b2e
1 <?php
3 final class DiffusionRepositoryRemarkupRule
4 extends PhabricatorObjectRemarkupRule {
6 protected function getObjectNamePrefix() {
7 return 'r';
10 protected function getObjectIDPattern() {
11 return '[A-Z]+';
14 public function getPriority() {
15 return 460.0;
18 protected function loadObjects(array $ids) {
19 $viewer = $this->getEngine()->getConfig('viewer');
21 $repos = id(new PhabricatorRepositoryQuery())
22 ->setViewer($viewer)
23 ->withIdentifiers($ids);
25 $repos->execute();
26 return $repos->getIdentifierMap();