1
0
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:
Toby Zerner
2015-02-06 14:07:15 +10:30
parent abd3aa2e1a
commit 28d213d868
9 changed files with 159 additions and 18 deletions

View File

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