<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,6 @@
 = Git
 
+* Added comments.notify_creator and comments.notify_updater to send emails to the page creator/updater [Jim Gay]
 * Added accept.png icon and rake task to copy it. [ryan@artofmission.com]
 
 = 0.0.5</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <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; notify_creator_config != notify_updater_config
+      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>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1439aaaee7106ee3f6d24471e43ff6a06b777e28</id>
    </parent>
  </parents>
  <author>
    <name>Jim Gay</name>
    <email>jim@saturnflyer.com</email>
  </author>
  <url>http://github.com/franklouwers/radiant-comments/commit/a7c29400dcac6532088789d0c2873f9f2f6f10b7</url>
  <id>a7c29400dcac6532088789d0c2873f9f2f6f10b7</id>
  <committed-date>2008-09-03T17:49:49-07:00</committed-date>
  <authored-date>2008-09-03T17:49:49-07:00</authored-date>
  <message>add ability to notify author</message>
  <tree>b33afcd0b81a5733097be6bbb58e043908835529</tree>
  <committer>
    <name>Jim Gay</name>
    <email>jim@saturnflyer.com</email>
  </committer>
</commit>
