From 69603ede7a0d7567f37025eee713975282122d13 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 29 Dec 2008 21:09:44 +0000 Subject: Implemented bharat's suggestions to the comment module in preparation for the spam_filter module --- modules/comment/controllers/comments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment/controllers/comments.php') diff --git a/modules/comment/controllers/comments.php b/modules/comment/controllers/comments.php index 293c456d..cb2ebb01 100644 --- a/modules/comment/controllers/comments.php +++ b/modules/comment/controllers/comments.php @@ -69,7 +69,7 @@ class Comments_Controller extends REST_Controller { print json_encode( array("result" => "success", - "resource" => $comment->visible ? url::site("comments/{$comment->id}") : NULL, + "resource" => $comment->published ? url::site("comments/{$comment->id}") : NULL, "form" => comment::get_add_form($item)->__toString())); } else { print json_encode( -- cgit v1.2.3