mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Allow setting the raw content of a CommentPost
This commit is contained in:
parent
1e8399c014
commit
084f74946d
|
@ -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…
Reference in New Issue
Block a user