1
0
mirror of https://github.com/flarum/core.git synced 2025-07-19 15:51:16 +02:00

Allow formatting post content without a request (#1848)

This commit is contained in:
Matteo Contrini
2019-09-04 00:12:28 +02:00
committed by Franz Liedke
parent e5e505e85a
commit 0005da3a0d

View File

@@ -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);
}