Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
comment.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Apr 2008 at 13:53 UTC
Updated:
30 Aug 2009 at 09:50 UTC
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
Comment #1
ged3000 commentedIs 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?
Comment #2
davyvdb commentedThis is irrelevant now I guess too.
Comment #3
cburschkaNeeds review isn't the right state for that, though.
I'll mark it duplicate since the feature is effectively in with hook_query alter.