mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 00:25:33 +08:00
parent
c192cbc57b
commit
ba3071eaac
|
@ -42,6 +42,9 @@ return [
|
|||
|
||||
new Extend\Locales(__DIR__.'/locale'),
|
||||
|
||||
(new Extend\View)
|
||||
->namespace('flarum-mentions', __DIR__.'/views'),
|
||||
|
||||
function (Dispatcher $events, Factory $views) {
|
||||
$events->listen(WillSerializeData::class, Listener\FilterVisiblePosts::class);
|
||||
$events->subscribe(Listener\AddPostMentionedByRelationship::class);
|
||||
|
@ -63,7 +66,5 @@ return [
|
|||
|
||||
$events->listen(Rendering::class, Listener\FormatPostMentions::class);
|
||||
$events->listen(Rendering::class, Listener\FormatUserMentions::class);
|
||||
|
||||
$views->addNamespace('flarum-mentions', __DIR__.'/views');
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue
Block a user