fix: editing a post does not update the search index

CommentSeeder only listened to Post\Event\Posted, so post edits
left the Elasticsearch document stale.
This commit is contained in:
Bart van Bragt 2026-04-09 10:43:10 +02:00
parent 5929a191f6
commit ff2a252e99
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ class CommentSeeder extends Seeder
{ {
$events->listen([ $events->listen([
Core\Posted::class, Core\Posted::class,
Core\Revised::class
], function ($event) use ($callable) { ], function ($event) use ($callable) {
$callable($event->post); $callable($event->post);
}); });