Skip to content

Commit ea1c339

Browse files
committed
retain formatting option when creating 1st post of discussion
1 parent 6904ec5 commit ea1c339

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
@@ -33,7 +33,7 @@ public function make(Request $request, Group $group)
3333

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

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

0 commit comments

Comments
 (0)