Mithril 2 Update (#15)

Update for Mithril 2
This commit is contained in:
Alexander Skvortsov 2020-09-23 22:43:34 -04:00 committed by GitHub
commit 8b4380254e

View File

@ -10,7 +10,7 @@ app.initializers.add('flarum-akismet', () => {
const flags = post.flags(); const flags = post.flags();
if (flags && flags.some(flag => flag.type() === 'akismet')) { if (flags && flags.some(flag => flag.type() === 'akismet')) {
items.get('approve').props.children = app.translator.trans('flarum-akismet.forum.post.not_spam_button'); items.get('approve').children = app.translator.trans('flarum-akismet.forum.post.not_spam_button');
} }
} }
}); });