mirror of
https://github.com/flarum/core.git
synced 2025-08-03 15:07:53 +02: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