New comment triggers notification containing node text not comment text

chsiung - October 27, 2009 - 20:31
Project:Subscriptions
Version:5.x-2.5
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

Hi. The symptom I'm seeing sometimes (but not all the time) is when a person posts a comment on a node, an email notification is sent out containing the original node text rather than the comment text. As a result, the members think it's a duplicate post.

Most of the time, the new comments are sent out as emails. I see these duplicate emails about 1 in 5 times.

Any ideas what could be the problem?
Chris

Other information:
* People's subscriptions are set to "on update" and "on comment"
* OG groups subscriptions are being used.
* My mail template looks like this:

{{!is_old==1?:!node_type Post by !sender_name:

}}
{{!is_old==1?:!body}}{{!has_new_comments==1?!comments:}}
| Post Reply: !url

| --------------------------------------------------------------------
| This is an automated message for !recipient_name.
|
| Please do NOT reply to the sender address!
| To manage your subscriptions go to
| !manage_url
|
| Direct unsubscribe link (!subs_type):
| !unsubscribe_url

#1

salvis - October 27, 2009 - 22:10

No, I've never heard of such a problem.

The template that you're showing seems to be the node/nid template. Which one is used when you get the node instead of a comment?

(Maybe we'll have to backport http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/subscriptio...)

Can you look inside the {subscriptions_queue} table? What load_function is used? Nodes should use 'subscriptions_content_node_load', comments 'subscriptions_content_comment_load'.

I don't know the inner workings of the subscriptions_og module (and I can't really say whether that matters). It would certainly be easier for me if we could work with non-OG nodes.

#2

salvis - November 3, 2009 - 18:09
Status:active» postponed (maintainer needs more info)
 
 

Drupal is a registered trademark of Dries Buytaert.