This commit is contained in:
Toby Zerner 2015-09-04 13:26:33 +09:30
parent 2762cf5f99
commit cca9fea5df
2 changed files with 5 additions and 4 deletions
extensions/akismet
js/forum/src
src/Listeners

@ -12,9 +12,10 @@ app.initializers.add('akismet', () => {
<Button className="Button"
icon="check"
onclick={() => {
this.dismissReport({akismet: 'ham'}).then(
() => PostControls.restoreAction.apply(this.props.post)
);
this.dismissReport({akismet: 'ham'}).then(() => {
PostControls.restoreAction.apply(this.props.post);
m.redraw();
});
}}>
Not Spam
</Button>

@ -16,7 +16,7 @@ use TijsVerkoyen\Akismet\Akismet;
use Flarum\Core;
use Flarum\Core\Posts\CommentPost;
use Flarum\Core\Settings\SettingsRepository;
use Flarum\Report\Report;
use Flarum\Reports\Report;
class ValidatePost
{