Skip to content

Commit 678b279

Browse files
authored
Merge pull request #51 from answeb/fix-discussion-create-formatting
retain formatting option when creating 1st post of discussion
2 parents d8c9097 + ea1c339 commit 678b279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/DiscussionService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function make(Request $request, Group $group)
3434

3535
// Make the post and attach it to the user
3636
$post = $user->posts()->make(
37-
$this->getSanitizedPostData($request->only('content'))
37+
$this->getSanitizedPostData($request->only(['formatting', 'content']))
3838
);
3939

4040
$discussion->posts()->save($post);

0 commit comments

Comments
 (0)