From 32851eaf570498e0eaa786d3d0604b05b0ccda94 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Wed, 1 Feb 2023 20:04:48 +0800 Subject: [PATCH] fix(blog): reply comment --- web/app/controllers/subdomain/blog/blog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/controllers/subdomain/blog/blog.php b/web/app/controllers/subdomain/blog/blog.php index 4212b4f..5fde6d2 100644 --- a/web/app/controllers/subdomain/blog/blog.php +++ b/web/app/controllers/subdomain/blog/blog.php @@ -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;