1
0
mirror of https://github.com/flarum/core.git synced 2025-07-26 11:10:41 +02:00

Fix read discussion command action

This commit is contained in:
Toby Zerner
2015-04-25 22:37:04 +09:30
parent 0548ebd54c
commit 34d150b24b

View File

@@ -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