mirror of
https://github.com/flarum/framework.git
synced 2025-06-06 16:24:33 +08:00
Fixes
This commit is contained in:
@ -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>
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user