From d4fd71aaffdbaaf0a75cccc7cbbaca0b58fb7a98 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 29 Mar 2016 17:53:07 +1030 Subject: [PATCH] Prevent unapproved discussions from dropping to the bottom of the discussion list --- framework/core/src/Core/Command/StartDiscussionHandler.php | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/core/src/Core/Command/StartDiscussionHandler.php b/framework/core/src/Core/Command/StartDiscussionHandler.php index e1bdd0cba..527a8a2ab 100644 --- a/framework/core/src/Core/Command/StartDiscussionHandler.php +++ b/framework/core/src/Core/Command/StartDiscussionHandler.php @@ -92,6 +92,7 @@ class StartDiscussionHandler // last_time.) $discussion->setRawAttributes($post->discussion->getAttributes(), true); $discussion->setStartPost($post); + $discussion->setLastPost($post); $this->dispatchEventsFor($discussion, $actor);