Fixed logging of post previews
This commit is contained in:
parent
210342a5bf
commit
4fd25b10c6
1 changed files with 3 additions and 1 deletions
|
@ -62,9 +62,11 @@ class CommentController
|
|||
$comment->comment_date = time();
|
||||
$comment->text = $text;
|
||||
if (InputHelper::get('sender') != 'preview')
|
||||
{
|
||||
R::store($comment);
|
||||
LogHelper::logEvent('comment-add', '+{user} commented on @{post}', ['post' => $post->id]);
|
||||
}
|
||||
$this->context->transport->textPreview = $comment->getText();
|
||||
LogHelper::logEvent('comment-add', '+{user} commented on @{post}', ['post' => $post->id]);
|
||||
StatusHelper::success();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue