We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd77b22 commit 705f643Copy full SHA for 705f643
src/Actions/DeletePost.php
@@ -47,8 +47,8 @@ protected function transact()
47
}
48
49
// Update sequence numbers for all of the thread's posts
50
- $this->post->thread->posts->each(function ($p) {
51
- $p->updateWithoutTouch(['sequence' => $p->getSequenceNumber()]);
+ $this->post->thread->posts->each(function ($p, $i) {
+ $p->updateWithoutTouch(['sequence' => $i + 1]);
52
});
53
54
return $this->post;
0 commit comments