Flarum\Core\Post\CommentPost::revise PHP Method

revise() public method

Revise the post's content.
public revise ( string $content, User $actor )
$content string
$actor Flarum\Core\User
    public function revise($content, User $actor)
    {
        if ($this->content !== $content) {
            $this->content = $content;
            $this->edit_time = time();
            $this->edit_user_id = $actor->id;
            $this->raise(new PostWasRevised($this));
        }
        return $this;
    }