mirror of
https://github.com/flarum/core.git
synced 2025-10-27 05:31:29 +01:00
@@ -58,7 +58,6 @@ class Post extends Model
|
|||||||
parent::boot();
|
parent::boot();
|
||||||
|
|
||||||
static::creating(function ($post) {
|
static::creating(function ($post) {
|
||||||
$post->type = $post::$type;
|
|
||||||
$post->number = ++$post->discussion->number_index;
|
$post->number = ++$post->discussion->number_index;
|
||||||
$post->discussion->save();
|
$post->discussion->save();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user