Select the types of activity you want to include in your feed.
@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
···11<?php
2233-/**
44- * @group markup
55- */
63abstract class PhabricatorRemarkupRuleObject
74 extends PhutilRemarkupRule {
85···119116 $boundary = '\\B';
120117 }
121118122122- // NOTE: The "(?<!#)" prevents us from linking "#abcdef" or similar. The
123123- // "(?<!/)" prevents us from linking things in URLs. The "\b" allows us to
124124- // link "(abcdef)" or similar without linking things in the middle of
125125- // words.
119119+ // NOTE: The "(?<!#)" prevents us from linking "#abcdef" or similar.
120120+ // The "(?<!/)" prevents us from linking things in URIs.
121121+ // The "(?<!;)" prevents linking Diffusion URIs to commits.
122122+ // The "\b" allows us to link "(abcdef)" or similar without linking things
123123+ // in the middle of words.
126124127125 $text = preg_replace_callback(
128128- '((?<!#)(?<!/)'.$boundary.$prefix.'('.$id.')(?:#([-\w\d]+))?\b)',
126126+ '((?<!#)(?<!/)(?<!;)'.$boundary.$prefix.'('.$id.')(?:#([-\w\d]+))?\b)',
129127 array($this, 'markupObjectReference'),
130128 $text);
131129