mirror of
https://github.com/flarum/core.git
synced 2025-08-10 18:35:56 +02:00
Implement discussion composition and creation
This commit is contained in:
@@ -52,6 +52,10 @@ class StartDiscussionCommandHandler implements CommandHandler
|
||||
new PostReplyCommand($discussion->id, $command->content, $command->user)
|
||||
);
|
||||
|
||||
// The discussion may have been updated by the PostReplyCommand; we need
|
||||
// to refresh its data.
|
||||
$discussion = $this->discussionRepo->find($discussion->id);
|
||||
|
||||
$this->dispatchEventsFor($discussion);
|
||||
|
||||
return $discussion;
|
||||
|
Reference in New Issue
Block a user