mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 09:53:27 +08:00
parent
ec026e514d
commit
62d32bc40c
@ -58,7 +58,6 @@ class Post extends Model
|
||||
parent::boot();
|
||||
|
||||
static::creating(function ($post) {
|
||||
$post->type = $post::$type;
|
||||
$post->number = ++$post->discussion->number_index;
|
||||
$post->discussion->save();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user