mirror of
https://github.com/flarum/core.git
synced 2025-07-25 10:41:24 +02:00
@@ -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();
|
||||
});
|
||||
|
Reference in New Issue
Block a user