Skip to content

Commit

Permalink
Allow formatting post content without a request (flarum#1848)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocontrini authored and wzdiyb committed Feb 16, 2020
1 parent cb44e91 commit beb3019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Post/CommentPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function setParsedContentAttribute($value)
* @param ServerRequestInterface $request
* @return string
*/
public function formatContent(ServerRequestInterface $request)
public function formatContent(ServerRequestInterface $request = null)
{
return static::$formatter->render($this->attributes['content'], $this, $request);
}
Expand Down

0 comments on commit beb3019

Please sign in to comment.