From 13e79e5457bf9fc307166e942ed37fc96028ce4d Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Fri, 19 Jun 2020 22:27:37 -0400 Subject: [PATCH] Add empty locale extender to clear cache properly on enable/disable. See https://github.com/flarum/core/pull/2020#issuecomment-616149583 --- extensions/mentions/extend.php | 2 ++ extensions/mentions/locale/.gitkeep | 0 2 files changed, 2 insertions(+) create mode 100644 extensions/mentions/locale/.gitkeep 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