From 6669f340dd734e919ac4381c226dab1c32758f72 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 25 Apr 2015 22:37:04 +0930 Subject: [PATCH] Fix read discussion command action --- framework/core/src/Api/Actions/Discussions/UpdateAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Api/Actions/Discussions/UpdateAction.php b/framework/core/src/Api/Actions/Discussions/UpdateAction.php index 22ea30a49..8af13074b 100644 --- a/framework/core/src/Api/Actions/Discussions/UpdateAction.php +++ b/framework/core/src/Api/Actions/Discussions/UpdateAction.php @@ -45,7 +45,7 @@ class UpdateAction extends BaseAction // its own endpoint. if ($readNumber = $params->get('data.readNumber')) { $command = new ReadDiscussionCommand($discussionId, $user, $readNumber); - $this->dispatch($command, $params); + $discussion = $this->dispatch($command, $params)->discussion; } // Presumably, the discussion was updated successfully. (One of the command