mirror of
https://github.com/flarum/framework.git
synced 2025-04-02 15:15:24 +08:00
Fixes
This commit is contained in:
parent
2762cf5f99
commit
cca9fea5df
extensions/akismet
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user