<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/views/comments/create.js.rjs</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -22,7 +22,7 @@ class CommentsController &lt; BaseController
     #don't use the get_type, as we want the specific case where the user typed /User/username/comments
     redirect_to user_comments_path(params[:commentable_id]) and return if (params[:commentable_type] &amp;&amp; params[:commentable_type].camelize == &quot;User&quot;)    
       
-    unless logged_in? || @commentable &amp;&amp; @commentable.owner.profile_public?
+    unless logged_in? || @commentable &amp;&amp; (@commentable.owner &amp;&amp; @commentable.owner.profile_public?)
       flash.now[:error] = :this_users_profile_is_not_public_youll_need_to_create_an_account_and_log_in_to_access_it.l
       redirect_to :controller =&gt; 'sessions', :action =&gt; 'new' and return
     end
@@ -91,20 +91,12 @@ class CommentsController &lt; BaseController
         @comment.send_notifications
 
         flash.now[:notice] = :comment_was_successfully_created.l
-        format.html {
-          redirect_to commentable_url(@comment)
-        }
-        format.js {
-          render :partial =&gt; 'comments/comment.html.haml', :locals =&gt; {:comment =&gt; @comment, :highlighted =&gt; true}
-        }
+        format.html { redirect_to commentable_url(@comment) }
+        format.js
       else
         flash.now[:error] = :comment_save_error.l_with_args(:error =&gt; @comment.errors.full_messages.to_sentence)
-        format.html {
-          redirect_to :controller =&gt; comment_type.underscore.pluralize, :action =&gt; 'show', :id =&gt; comment_id
-        }
-        format.js{
-          render :inline =&gt; flash[:error], :status =&gt; 500
-        }
+        format.html { redirect_to :controller =&gt; comment_type.underscore.pluralize, :action =&gt; 'show', :id =&gt; comment_id }
+        format.js
       end
     end
   end</diff>
      <filename>app/controllers/comments_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -108,6 +108,7 @@ class PostsController &lt; BaseController
     @post = Post.new(params[:post])
     @post.user = @user
     @post.tag_list = params[:tag_list] || ''
+    
     respond_to do |format|
       if @post.save
         @post.create_poll(params[:poll], params[:choices]) if params[:poll]
@@ -120,8 +121,10 @@ class PostsController &lt; BaseController
             redirect_to manage_user_posts_path(@user)
           end
         }
+        format.js
       else
         format.html { render :action =&gt; &quot;new&quot; }
+        format.js        
       end
     end
   end</diff>
      <filename>app/controllers/posts_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -93,7 +93,7 @@ class Comment &lt; ActiveRecord::Base
   end
   
   def notify_previous_anonymous_commenters
-    anonymous_commenters_emails = commentable.comments.map{|c| c.author_email if ( !c.user &amp;&amp; !c.author_email.eql?(self.author_email) &amp;&amp; c.author_email) }.uniq.compact
+    anonymous_commenters_emails = commentable.comments.map{|c| c.author_email if ( !c.user_id &amp;&amp; !c.author_email.eql?(self.author_email) &amp;&amp; c.author_email) }.uniq.compact
     anonymous_commenters_emails.each do |email|
       UserNotifier.deliver_follow_up_comment_notice_anonymous(email, self)
     end    </diff>
      <filename>app/models/comment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,6 +11,8 @@ class Event &lt; ActiveRecord::Base
   
   named_scope :upcoming, :order =&gt; 'start_time DESC'
   
+  acts_as_commentable    
+  
   def time_and_date
     if spans_days?
       string = &quot;#{start_time.strftime(&quot;%B %d&quot;)} to #{end_time.strftime(&quot;%B %d %Y&quot;)}&quot;</diff>
      <filename>app/models/event.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,17 +1,19 @@
 - if logged_in? || AppConfig.allow_anonymous_commenting
-  %script{&quot;type&quot;=&gt;&quot;text/javascript&quot;}
-    function scrollToNewestComment(){
-    loc = document.location.toString();
-    if (loc.indexOf(&quot;#&quot;) != -1){
-    parts = loc.split('#')
-    loc = parts[0] + &quot;#newest_comment&quot;
-    } else {
-    loc = loc + &quot;#newest_comment&quot;;
-    }
-    document.location.href = loc;
-    }
+  %script{:type=&gt;&quot;text/javascript&quot;} 
+    :plain
+      function scrollToNewestComment(){
+        loc = document.location.toString();
+        if (loc.indexOf(&quot;#&quot;) != -1){
+          parts = loc.split('#')
+          loc = parts[0] + &quot;#newest_comment&quot;
+        } else {
+          loc = loc + &quot;#newest_comment&quot;;
+        }
+        document.location.href = loc;
+      }
+      
   .errors
-  - form_remote_for(:comment, :loading =&gt; &quot;$$('div#comments div.errors')[0].innerHTML = ''; $('comment_spinner').show();&quot;, :before =&gt; &quot;tinyMCE.activeEditor.save();&quot;, :url =&gt; comments_url(commentable.class.to_s.underscore, commentable.id ), 500 =&gt; &quot;$$('div#comments div.errors')[0].update(request.responseText);new Effect.Highlight($$('div#comments div.errors')[0]); return false;&quot;, :success =&gt; &quot;new Insertion.#{commentable.class.to_s.eql?('User') ? 'After': 'After' }('newest_comment', request.responseText); tinyMCE.activeEditor.setContent(\'\'); scrollToNewestComment();$('emptycomments').hide();&quot;, :complete =&gt; &quot;$('comment_spinner').hide(); if($('dynamic_recaptcha')){Recaptcha.create('#{AppConfig.recaptcha_pub_key}', $('dynamic_recaptcha') )}&quot;, :html =&gt; {:class =&gt; &quot;MainForm&quot;}) do |f|
+  - form_remote_for(:comment, :loading =&gt; &quot;$$('div#comments div.errors')[0].innerHTML = ''; $('comment_spinner').show();&quot;, :before =&gt; &quot;tinyMCE.activeEditor.save();&quot;, :url =&gt; comments_url(commentable.class.to_s.underscore, commentable.id ), :html =&gt; {:id =&gt; 'new_comment_form', :class =&gt; &quot;MainForm&quot;}) do |f|
     %label
       %em=&quot;(2000 character limit)&quot;.l :comment_character_limit
     = text_area :comment, :comment, {:size =&gt; &quot;86x5&quot;, :class =&gt; &quot;rich_text_editor&quot;}</diff>
      <filename>app/views/comments/_comment_form.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
+=render :partial =&gt; &quot;facebooker/feed_dialog&quot;, :locals =&gt; {:type =&gt; 'post'}
+
 .yui-b
   .box#category_tips
     -if @post.contest</diff>
      <filename>app/views/posts/new.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -6,4 +6,4 @@
     %li= :see_you_back_here_in_a_short_while.l        
 
   %h3= :no_activation_email.l
-  = link_to(:resend_activation_email.l, &quot;/resend_activation?email=#{@user.email}&quot;, :method =&gt; 'post')
\ No newline at end of file
+  = link_to(:resend_my_activation_e_mail.l, &quot;/resend_activation?email=#{@user.email}&quot;, :method =&gt; 'post')
\ No newline at end of file</diff>
      <filename>app/views/users/signup_completed.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -291,7 +291,7 @@
 #en: location: Location
 #en: locked: Locked
 #en: locked2: (locked)
-#en: look_for_a_message_from: &quot;Look for a message from:&quot;
+#en: look_for_a_message_from: &quot;Look for a message from: {{from}}&quot;
 #en: looking_for_most_x: Looking for {{link}}
 #en: make_moderator: Make moderator
 #en: make_my_profile_public: Make my profile public
@@ -604,7 +604,7 @@
 #en: watch_ing: ing
 #en: watch_topic: Watch topic
 #en: watching_topic: Watching topic
-#en: we_just_sent_an_e_mail_to: &quot;We just sent an e-mail to:&quot;
+#en: we_just_sent_an_e_mail_to: &quot;We just sent an e-mail to: {{email}}&quot;
 #en: we_need_you: We need you
 #en: welcome_message: Welcome! {{login_link}} or {{signup_link}}
 #en: what_are_tags: 'What are &quot;Tags&quot;?'</diff>
      <filename>lang/base.yml</filename>
    </modified>
    <modified>
      <diff>@@ -68,7 +68,7 @@ en:
   #en: advertise_on: Advertise on
   advertise_on: Advertise on
   #en: after_signing_up_youll_receive_an_e_mail_confirmation_message: After signing up, you'll receive an e-mail confirmation message.
-  after_signing_up_youll_receive_an_e_mail_confirmation_message: After signing up, you'll receive an e-mail confirmation message.
+  after_signing_up_youll_receive_an_e_mail_confirmation_message: &quot;After signing up, you'll receive an e-mail confirmation message.&quot;
   #en: all_clippings_tagged: All clippings tagged {{tag_name}}
   all_clippings_tagged: All clippings tagged {{tag_name}}
   #en: all_comments: All comments
@@ -260,7 +260,7 @@ en:
   #en: dashboard: Dashboard
   dashboard: Dashboard
   #en: dashboard_friends: Once you start adding friends, you'll be able to track their activity on {{site}} here
-  dashboard_friends: Once you start adding friends, you'll be able to track their activity on {{site}} here
+  dashboard_friends: &quot;Once you start adding friends, you'll be able to track their activity on {{site}} here&quot;
   #en: date: Date
   date_title: Date
   #en: date_created: Date Created
@@ -534,7 +534,7 @@ en:
   #en: invited_friends: invited some friends to join!
   invited_friends: invited some friends to join!
   #en: is_great_check_it_out_youll_love_it: is great, check it out you'll love it!
-  is_great_check_it_out_youll_love_it: is great, check it out you'll love it!
+  is_great_check_it_out_youll_love_it: &quot;is great, check it out you'll love it!&quot;
   #en: items: Items
   items: Items
   #en: joined: joined
@@ -593,8 +593,8 @@ en:
   locked: Locked
   #en: locked2: (locked)
   locked2: (locked)
-  #en: look_for_a_message_from: &quot;Look for a message from:&quot;
-  look_for_a_message_from: &quot;Look for a message from:&quot;
+  #en: look_for_a_message_from: &quot;Look for a message from: {{from}}&quot;
+  look_for_a_message_from: &quot;Look for a message from: {{from}}&quot;
   #en: looking_for_most_x: Looking for {{link}}
   looking_for_most_x: Looking for {{link}}
   #en: make_moderator: Make moderator
@@ -713,8 +713,10 @@ en:
   next: next
   #en: next_page: Next page
   next_page: Next page
+  #en: no_activation_email: No activation e-mail?
+  no_activation_email: No activation e-mail?
   #en: no_comments_found: Sorry, we couldn't find any comments for that {{type}}
-  no_comments_found: Sorry, we couldn't find any comments for that {{type}}
+  no_comments_found: &quot;Sorry, we couldn't find any comments for that {{type}}&quot;
   #en: no_images_uploaded_yet: No images uploaded yet.
   no_images_uploaded_yet: No images uploaded yet.
   #en: no_messages: no messages
@@ -1225,8 +1227,8 @@ en:
   watch_topic: Watch topic
   #en: watching_topic: Watching topic
   watching_topic: Watching topic
-  #en: we_just_sent_an_e_mail_to: &quot;We just sent an e-mail to:&quot;
-  we_just_sent_an_e_mail_to: &quot;We just sent an e-mail to:&quot;
+  #en: we_just_sent_an_e_mail_to: &quot;We just sent an e-mail to: {{email}}&quot;
+  we_just_sent_an_e_mail_to: &quot;We just sent an e-mail to: {{email}}&quot;
   #en: we_need_you: We need you
   we_need_you: We need you
   #en: welcome_message: Welcome! {{login_link}} or {{signup_link}}</diff>
      <filename>lang/ui/en-US.yml</filename>
    </modified>
    <modified>
      <diff>@@ -25,7 +25,7 @@ module CommunityEngine
     
     def guess_current_ce_version
       # DUMB: checks your db/migrate and parses out the last CE migration to find out which version you're at      
-      last_version =  Dir[&quot;#{RAILS_ROOT}/db/migrate/[0-9]*_community_engine_*.rb&quot;].sort.last
+      last_version =  Dir[&quot;#{RAILS_ROOT}/db/migrate/[0-9]*_community_engine_to*.rb&quot;].sort.last
       if last_version
         last_version[/.*_community_engine_to_version_(\d+)/, 1].to_i
       else</diff>
      <filename>lib/community_engine.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>abe8c7d89d101673a63faf6d4a35945f9885bf5b</id>
    </parent>
  </parents>
  <author>
    <name>bborn</name>
    <email>bruno.bornsztein@gmail.com</email>
  </author>
  <url>http://github.com/bborn/communityengine/commit/e1739b9e8a85abed446e97ff249f83f62a612744</url>
  <id>e1739b9e8a85abed446e97ff249f83f62a612744</id>
  <committed-date>2009-03-02T14:34:44-08:00</committed-date>
  <authored-date>2009-03-02T14:34:44-08:00</authored-date>
  <message>updated some of the commenting ajax to use rjs</message>
  <tree>23d9b691176b93c18975023e6c545bad455d2533</tree>
  <committer>
    <name>bborn</name>
    <email>bruno.bornsztein@gmail.com</email>
  </committer>
</commit>
