mirror of
https://github.com/flarum/framework.git
synced 2025-02-27 11:33:27 +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
|
* @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…
x
Reference in New Issue
Block a user