mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed logging of post previews
This commit is contained in:
@ -62,9 +62,11 @@ class CommentController
|
||||
$comment->comment_date = time();
|
||||
$comment->text = $text;
|
||||
if (InputHelper::get('sender') != 'preview')
|
||||
{
|
||||
R::store($comment);
|
||||
$this->context->transport->textPreview = $comment->getText();
|
||||
LogHelper::logEvent('comment-add', '+{user} commented on @{post}', ['post' => $post->id]);
|
||||
}
|
||||
$this->context->transport->textPreview = $comment->getText();
|
||||
StatusHelper::success();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user