fix(blog): reply comment
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-02-01 20:04:48 +08:00
parent 5db2b2c381
commit 32851eaf57
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -91,7 +91,7 @@ $reply_form->addHidden(
return '您要回复的对象不存在';
}
$comment = UOJBlogComment::query($reply_id);
if (!$comment || $comment['blog_id'] != $blog['id']) {
if (!$comment || $comment->info['blog_id'] != $blog['id']) {
return '您要回复的对象不存在';
}
$vdata['parent'] = $comment;