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

View File

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

View File

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