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

Legalpad - remarkup LX to link to LX

Summary: standard ish. Fixes T4388.

Test Plan: made a comment with L1 and noted L1 linked to L1. Also observed working-ish hovercard.

Reviewers: epriestley

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Maniphest Tasks: T4388

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

+27 -3
+2
src/__phutil_library_map__.php
··· 842 842 'LegalpadDocumentEditor' => 'applications/legalpad/editor/LegalpadDocumentEditor.php', 843 843 'LegalpadDocumentListController' => 'applications/legalpad/controller/LegalpadDocumentListController.php', 844 844 'LegalpadDocumentQuery' => 'applications/legalpad/query/LegalpadDocumentQuery.php', 845 + 'LegalpadDocumentRemarkupRule' => 'applications/legalpad/remarkup/LegalpadDocumentRemarkupRule.php', 845 846 'LegalpadDocumentSearchEngine' => 'applications/legalpad/query/LegalpadDocumentSearchEngine.php', 846 847 'LegalpadDocumentSignController' => 'applications/legalpad/controller/LegalpadDocumentSignController.php', 847 848 'LegalpadDocumentSignature' => 'applications/legalpad/storage/LegalpadDocumentSignature.php', ··· 3438 3439 1 => 'PhabricatorApplicationSearchResultsControllerInterface', 3439 3440 ), 3440 3441 'LegalpadDocumentQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 3442 + 'LegalpadDocumentRemarkupRule' => 'PhabricatorRemarkupRuleObject', 3441 3443 'LegalpadDocumentSearchEngine' => 'PhabricatorApplicationSearchEngine', 3442 3444 'LegalpadDocumentSignController' => 'LegalpadController', 3443 3445 'LegalpadDocumentSignature' =>
+6 -3
src/applications/legalpad/application/PhabricatorApplicationLegalpad.php
··· 1 1 <?php 2 2 3 - /** 4 - * @group legalpad 5 - */ 6 3 final class PhabricatorApplicationLegalpad extends PhabricatorApplication { 7 4 8 5 public function getBaseURI() { ··· 31 28 32 29 public function isBeta() { 33 30 return true; 31 + } 32 + 33 + public function getRemarkupRules() { 34 + return array( 35 + new LegalpadDocumentRemarkupRule(), 36 + ); 34 37 } 35 38 36 39 public function getRoutes() {
+19
src/applications/legalpad/remarkup/LegalpadDocumentRemarkupRule.php
··· 1 + <?php 2 + 3 + final class LegalpadDocumentRemarkupRule 4 + extends PhabricatorRemarkupRuleObject { 5 + 6 + protected function getObjectNamePrefix() { 7 + return 'L'; 8 + } 9 + 10 + protected function loadObjects(array $ids) { 11 + $viewer = $this->getEngine()->getConfig('viewer'); 12 + 13 + return id(new LegalpadDocumentQuery()) 14 + ->setViewer($viewer) 15 + ->withIDs($ids) 16 + ->execute(); 17 + } 18 + 19 + }