Related to http://drupal.org/node/246440 and http://drupal.org/node/216504. When using hook_db_rewrite_sql() to restrict display of comments on comment_render, it's logical you also don't want those comments appearing in the "Recent comments" block. However, although the count query is run through db_rewrite_sql() (which is against the node_comment_statistics table and thus probably won't work?), the query that generates the actual list of comments is not.

Comments

ged3000’s picture

Is this soon to be irrelevant, because of Replace db_rewrite_sql() with hook_query_alter()? (For 7.x, at any rate)

Similarly for Comment counts not run through db_rewrite_sql()

Postpone this issue?

davyvdb’s picture

Status: Active » Needs review

This is irrelevant now I guess too.

cburschka’s picture

Status: Needs review » Closed (duplicate)

Needs review isn't the right state for that, though.

I'll mark it duplicate since the feature is effectively in with hook_query alter.