Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
comment.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jun 2010 at 13:25 UTC
Updated:
16 Jun 2010 at 06:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
catchThere's an additional bug - when the comments are unpublished, the last_comment_uid should fall back to the uid of the most recent published node, not 0.
Either way this patch changes it to do a comment_load_multiple() then comment_save(). It does not implement batch API due to the various issues discussed in #89181: Use queue API for node and comment, user, node multiple deletes - neither queue, nor batch, nor neither are good options.
Comment #2
catchComment #3
suns/cid/uid/
79 critical left. Go review some!
Comment #4
catchShocking.
Comment #5
catchComment #6
moshe weitzman commented$comment->status = 0;should be COMMENT_PUBLISHED
Comment #7
catchCOMMENT_NOT_PUBLISHED but yes. Also added DRUPAL_ANONYMOUS_RID while I was in there.
Comment #8
dries commentedI can't see anything wrong with this patch. Committed to CVS HEAD. Thanks.