<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -56,6 +56,7 @@ The snippets &quot;comments&quot;, &quot;comment&quot; and &quot;comment_form&quot; are created by the migrati
 
 == Contributors
 
+* Jim Gay of http://www.saturnflyer.com, sponsored by http://ignitesocialmedia.com/.
 * Michael Hale of http://halethegeek.com/, sponsored by http://ignitesocialmedia.com/.
 * Nathaniel Talbott of http://terralien.com/, sponsored by http://ignitesocialmedia.com/.
 * John Croisant</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,21 @@
 class CommentMailer &lt; ActionMailer::Base
   def comment_notification(comment, sent_at = Time.now)
+    notify_creator_config = Radiant::Config['comments.notify_creator']
+    notify_updater_config = Radiant::Config['comments.notify_updater']
+    notification_to_config = Radiant::Config['comments.notification_to']
+    
+    receivers = []
+    receivers &lt;&lt; notification_to_config unless notification_to_config.blank?
+    receivers &lt;&lt; comment.page.created_by.email unless notify_creator_config == false
+    if notify_updater_config == true &amp;&amp; comment.page.updated_by != comment.page.created_by
+      receivers &lt;&lt; comment.page.updated_by.email
+    end
+    
     page_url  = homepage_url(:host =&gt; default_url_options[:host], :port =&gt; default_url_options[:port])[0..-2] + comment.page.url
     site_name = Radiant::Config['comments.notification_site_name']
     
     subject    &quot;[#{site_name}] New comment posted&quot;
-    recipients Radiant::Config['comments.notification_to']
+    recipients receivers.join(',')
     from       Radiant::Config['comments.notification_from']
     sent_on    sent_at
     </diff>
      <filename>app/models/comment_mailer.rb</filename>
    </modified>
    <modified>
      <diff>@@ -48,6 +48,8 @@ class CommentsExtension &lt; Radiant::Extension
       'notification_from' =&gt; '',
       'notification_to' =&gt; '',
       'notification_site_name' =&gt; '',
+      'notify_creator' =&gt; 'true',
+      'notify_updater' =&gt; 'false',
       'akismet_key' =&gt; '',
       'akismet_url' =&gt; '',
       'filters_enabled' =&gt; 'true',</diff>
      <filename>comments_extension.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>84b78db7afc2271908351af55cd1ad5b449e610e</id>
    </parent>
    <parent>
      <id>b4696094698cee7a1fbb1b13556cfcbecbd12652</id>
    </parent>
  </parents>
  <author>
    <name>Benny Degezelle</name>
    <email>benny@gorilla-webdesign.be</email>
  </author>
  <url>http://github.com/franklouwers/radiant-comments/commit/69cafb6720c93753aaa19ad1957f8db4d0e5e367</url>
  <id>69cafb6720c93753aaa19ad1957f8db4d0e5e367</id>
  <committed-date>2008-09-24T07:54:26-07:00</committed-date>
  <authored-date>2008-09-24T07:54:26-07:00</authored-date>
  <message>Merge branch 'master' of git://github.com/saturnflyer/radiant-comments</message>
  <tree>827cdbfaad0bcaec2a88b68fe7e47907c393d3f2</tree>
  <committer>
    <name>Benny Degezelle</name>
    <email>benny@gorilla-webdesign.be</email>
  </committer>
</commit>
