diff --git a/extensions/mentions/extend.php b/extensions/mentions/extend.php index f444ba1c3..94ccac21d 100644 --- a/extensions/mentions/extend.php +++ b/extensions/mentions/extend.php @@ -40,6 +40,8 @@ return [ ->belongsToMany('mentionsPosts', Post::class, 'post_mentions_post', 'post_id', 'mentions_post_id') ->belongsToMany('mentionsUsers', User::class, 'post_mentions_user', 'post_id', 'mentions_user_id'), + new Extend\Locales(__DIR__.'/locale'), + function (Dispatcher $events, Factory $views) { $events->listen(WillSerializeData::class, Listener\FilterVisiblePosts::class); $events->subscribe(Listener\AddPostMentionedByRelationship::class); diff --git a/extensions/mentions/locale/.gitkeep b/extensions/mentions/locale/.gitkeep new file mode 100644 index 000000000..e69de29bb