mirror of
https://github.com/flarum/framework.git
synced 2025-03-02 13:33:11 +08:00
Fix read discussion command action
This commit is contained in:
parent
feb2891f56
commit
6669f340dd
@ -45,7 +45,7 @@ class UpdateAction extends BaseAction
|
|||||||
// its own endpoint.
|
// its own endpoint.
|
||||||
if ($readNumber = $params->get('data.readNumber')) {
|
if ($readNumber = $params->get('data.readNumber')) {
|
||||||
$command = new ReadDiscussionCommand($discussionId, $user, $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
|
// Presumably, the discussion was updated successfully. (One of the command
|
||||||
|
Loading…
x
Reference in New Issue
Block a user