mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 09:53:27 +08:00
Allow setting the raw content of a CommentPost
This commit is contained in:
parent
c85a3ab762
commit
5bfe75c763
@ -153,6 +153,16 @@ class CommentPost extends Post
|
||||
$this->attributes['content'] = $value ? static::$formatter->parse($value, $this) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the parsed/raw content.
|
||||
*
|
||||
* @param string $value
|
||||
*/
|
||||
public function setParsedContentAttribute($value)
|
||||
{
|
||||
$this->attributes['content'] = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the content rendered as HTML.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user