Closed (fixed)
Project:
Flag Tracker
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
1 Nov 2012 at 00:53 UTC
Updated:
4 Jan 2014 at 02:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dwwSlightly better title to reflect the fact that we need to unflag stuff in some cases, too.
Comment #2
dwwUpon further consideration (and studying of the flag + tracker2 integration in D6) I realized that we don't actually want to unflag a whole node just because a single comment was deleted or unpublished. In fact, we basically never want to automatically unflag. flag.module itself will remove all the flags once the node is deleted. And it's too much trouble (and too risky) to try to figure out if we should unflag just b/c a given comment was unpublished or removed.
So, I'm re-titling this issue again as I originally had it. ;)
Here's a patch that works well in my local testing. Writing this also helped me understand the bug at #1792912: if you unfollow an issue you created, when it is updated, you end up following it again so I fixed that behavior in here (see the code comments and code for
flag_tracker_node_update()for more).Comment #3
dwwPushed to 7.x-1.x: http://drupalcode.org/project/flag_tracker.git/commit/47d3aac
Comment #4.0
(not verified) commentedadded missing ol tags