mirror of
https://github.com/flarum/framework.git
synced 2025-02-27 04:50:12 +08:00
Allow formatting post content without a request (#1848)
This commit is contained in:
parent
52e73b2481
commit
df7f1291a7
@ -167,7 +167,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…
x
Reference in New Issue
Block a user