mirror of
https://github.com/flarum/framework.git
synced 2025-02-06 11:51:45 +08:00
Allow formatting post content without a request (#1848)
This commit is contained in:
parent
e5e505e85a
commit
0005da3a0d
|
@ -169,7 +169,7 @@ class CommentPost extends Post
|
|||
* @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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user