diff --git a/packages/realtime-compiler/resources/live-edit.blade.php b/packages/realtime-compiler/resources/live-edit.blade.php index 9c585a90323..e259c391dcd 100644 --- a/packages/realtime-compiler/resources/live-edit.blade.php +++ b/packages/realtime-compiler/resources/live-edit.blade.php @@ -21,7 +21,7 @@ - + diff --git a/packages/realtime-compiler/src/Http/LiveEditController.php b/packages/realtime-compiler/src/Http/LiveEditController.php index 96ba6669aa5..0c30f1aded7 100644 --- a/packages/realtime-compiler/src/Http/LiveEditController.php +++ b/packages/realtime-compiler/src/Http/LiveEditController.php @@ -50,7 +50,7 @@ protected function handleRequest(): Response $this->abort(400, 'Page is not a markdown page'); } - if (! $force && hash_file('sha256', $page->getSourcePath()) !== $currentContentHash) { + if (! $force && hash('sha256', $page->markdown()->body()) !== $currentContentHash) { $this->abort(409, 'Content has changed in another window'); }