mirror of
https://github.com/flarum/core.git
synced 2025-07-31 13:40:20 +02:00
Use new discussion URL format
This commit is contained in:
@@ -25,7 +25,7 @@ class AddPostMentionsFormatter
|
||||
$tag->attributes['number']->required = false;
|
||||
$tag->attributes['discussionid']->required = false;
|
||||
|
||||
$tag->template = '<a href="/d/{@discussionid}/-/{@number}" class="PostMention" data-id="{@id}"><xsl:value-of select="@username"/></a>';
|
||||
$tag->template = '<a href="/d/{@discussionid}/{@number}" class="PostMention" data-id="{@id}"><xsl:value-of select="@username"/></a>';
|
||||
|
||||
$tag->filterChain
|
||||
->prepend([static::class, 'addId'])
|
||||
|
@@ -2,7 +2,7 @@ Hey {{ $user->username }}!
|
||||
|
||||
{{ $blueprint->reply->user->username }} replied to your post (#{{ $blueprint->post->number }}) in {{ $blueprint->post->discussion->title }}.
|
||||
|
||||
{{ \Flarum\Core::config('base_url') }}/d/{{ $blueprint->reply->discussion_id }}/-/{{ $blueprint->reply->number }}
|
||||
{{ \Flarum\Core::config('base_url') }}/d/{{ $blueprint->reply->discussion_id }}/{{ $blueprint->reply->number }}
|
||||
|
||||
---
|
||||
|
||||
|
@@ -2,7 +2,7 @@ Hey {{ $user->username }}!
|
||||
|
||||
{{ $blueprint->post->user->username }} mentioned you in a post in {{ $blueprint->post->discussion->title }}.
|
||||
|
||||
{{ \Flarum\Core::config('base_url') }}/d/{{ $blueprint->post->discussion_id }}/-/{{ $blueprint->post->number }}
|
||||
{{ \Flarum\Core::config('base_url') }}/d/{{ $blueprint->post->discussion_id }}/{{ $blueprint->post->number }}
|
||||
|
||||
---
|
||||
|
||||
|
Reference in New Issue
Block a user