Currently if a comment is awaiting approval the administrator can view the comments and see the Quote link.

Clicking on the link either:
- does nothing since the comment is not published and the Quote module cannot access the comment to pull the text.
- causes a "The comment you are replying to does not exist" error

Proposed solution is to only show the Quote link if the comment is published.

// Original code in quote.module - function quote_link (line 68)

if (in_array($node->type, _quote_variable_get('node_types')) && $node->comment == COMMENT_NODE_READ_WRITE) {

// Change to 

if (in_array($node->type, _quote_variable_get('node_types')) && $node->comment == COMMENT_NODE_READ_WRITE && $post->status == 0) {

Comments

tinker’s picture

Category: feature » bug
Priority: Minor » Normal
Zen’s picture

Status: Active » Closed (works as designed)

The same arguments also apply to the reply link which is also visible. Please fix this issue in core and reopen + leave a note here appropriately.

Thanks,
-K