Needs work
Project:
Comment Notify
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2010 at 16:37 UTC
Updated:
25 Aug 2011 at 16:55 UTC
Jump to comment: Most recent file
Comments
Comment #1
gregglesThanks for your feature request and for helping make this a better module. Could you provide this as a patch?
Comment #2
gregglesAlso, I'd really rather do the check for cave module in a more generic way if possible. Maybe check for any modules that implement hook_db_rewrite_sql?
Comment #3
panthar commentedUpdated code to use module_implements('db_rewrite_sql') (insert in same spot):
I added a patch I generated from winmerge (I assume it will work), let me know if there is any issues.
Thanks
Comment #4
philpro commentedWas this patch ever committed? I've just updated comment notify and troll and emails of caved trolls are still going out.
Comment #5
gregglesIf I commit something I mark the issue as fixed.
Do you mean your code from #1 or the patch from #3.
The code from #1 won't get committed because it is too specific to cave module (per my comment in #2).
The code from #3 won't get committed because nobody has reviewed it and it is still too specific. It also misses on style points (comments should be capitalized and end in periods, spacing after the if).
What I asked panthar to do in irc when he posted this was
1. If there's a module that implements hook_db_rewrite_sql
2. Change users to be the user receiving the message
3. Run a query on the comment table to see if that user can see this comment
4. Switch users back
This idea should work for any module that does something like cave making it a better solution.