mirror of
https://github.com/flarum/framework.git
synced 2025-02-06 14:01:44 +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
|
* @param ServerRequestInterface $request
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function formatContent(ServerRequestInterface $request)
|
public function formatContent(ServerRequestInterface $request = null)
|
||||||
{
|
{
|
||||||
return static::$formatter->render($this->attributes['content'], $this, $request);
|
return static::$formatter->render($this->attributes['content'], $this, $request);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user