mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 16:12:50 +08:00
Seed renamed posts properly
This commit is contained in:
parent
5e09fd7cd8
commit
540902cd7a
|
@ -62,8 +62,8 @@ class DiscussionTableSeeder extends Seeder
|
|||
'discussion_id' => $discussion->id,
|
||||
'time' => $startTime = date_add($startTime, date_interval_create_from_date_string('1 second')),
|
||||
'user_id' => rand(1, $users),
|
||||
'type' => 'title',
|
||||
'content' => $discussion->title
|
||||
'type' => 'renamed',
|
||||
'content' => json_encode(array($faker->realText(rand(20, 40)), $discussion->title))
|
||||
]);
|
||||
} else {
|
||||
$edited = rand(1, 20) == 1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user