mirror of
https://github.com/flarum/core.git
synced 2025-08-04 15:37:51 +02:00
Convert the rest of the API to new action architecture
Also make some tweaks: - Merge SerializeAction::$include and SerializeAction::$includeAvailable into a keyed boolean array - Set defaults for SerializeAction::$limit and $limitMax - Rename SerializeAction::$sortAvailable to $sortFields
This commit is contained in:
@@ -41,7 +41,7 @@ class StartDiscussionCommandHandler
|
||||
// will trigger a domain event that is slightly semantically incorrect
|
||||
// in this situation (PostWasPosted), we may need to reconsider someday.
|
||||
$post = $this->bus->dispatch(
|
||||
new PostReplyCommand($discussion->id, array_get($command->data, 'content'), $command->user)
|
||||
new PostReplyCommand($discussion->id, $command->user, $command->data)
|
||||
);
|
||||
|
||||
return $post->discussion;
|
||||
|
Reference in New Issue
Block a user