I have experienced issues with comment notify when anonymous users commented on the front (read) server but the site editor approved the comment from the editing server ... so the url that was sent to the users was of the editing server - and they have no access to it.

So in the mail text I have changed the url from !comment_url to http://www.mysite.gov/node/!nid#comment-!cid

but I would like also (for anonymous users) to add the disable future follow-up notifications. the solution I thought of was to add a new variable: !hash_code
and to set the disable url to: http://www.mysite.gov/comment_notify/disable/!hash_code

I am attaching a patch, for you to review (or, if you have any other idea - I would love to hear)

Thanks,

S.

CommentFileSizeAuthor
hash_code.patch1.19 KBszadok
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

greggles’s picture

Status: Active » Needs review

That's an interesting problem. Your solution seems reasonable enough to me.

Anyone else have thoughts? Otherwise I'm likely to commit this.

szadok’s picture

Any chance you add this to next version?

greggles’s picture

Title: Add a new variable: Hash code » Provide a "token" for Hash code

It would be easier to commit this if you could create a Drupal 7 version of it as well.

Either way, I think it does make sense and should get added.