mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 04:33:47 +08:00
Remove unused parameter
This commit is contained in:
parent
c5818ba87d
commit
5bf642046d
|
@ -60,7 +60,6 @@ class FormatUserMentions
|
|||
|
||||
$tag->template = '<a href="{$PROFILE_URL}{@username}" class="UserMention">@<xsl:value-of select="@displayname"/></a>';
|
||||
$tag->filterChain->prepend([static::class, 'addId'])
|
||||
->addParameterByName('userRepository')
|
||||
->setJS('function(tag) { return System.get("flarum/mentions/utils/textFormatter").filterUserMentions(tag); }');
|
||||
|
||||
$configurator->Preg->match('/\B@(?<username>[a-z0-9_-]+)(?!#)/i', $tagName);
|
||||
|
|
Loading…
Reference in New Issue
Block a user