<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,7 @@
 class PostsController &lt; ApplicationController
 
-  before_filter :protect, :except =&gt; [ :index, :show, :posts_by, :imagebrowser, :random ]
-  before_filter :find_and_protect_post, :except =&gt; [ :index, :new, :create, :add_image, :remove_new_image, :show, :posts_by, :imagebrowser, :random ]
+  before_filter :protect, :except =&gt; [ :index, :show, :posts_by, :imagebrowser, :random, :updated ]
+  before_filter :find_and_protect_post, :except =&gt; [ :index, :new, :create, :add_image, :remove_new_image, :show, :posts_by, :imagebrowser, :random, :updated ]
 
   def find_and_protect_post
     @post = Post.find(params[:id])
@@ -23,13 +23,22 @@ class PostsController &lt; ApplicationController
   def index
     @posts = Post.paginate(:all, :page =&gt; params[:page], :per_page =&gt; 20, :order =&gt; &quot;posts.created_on desc, comments.created_on&quot;, :include =&gt; [ :comments, :user ])
     @title = &quot;rawdod&quot;
-    @hotness = Post.find(:all, :order =&gt; &quot;commented_on desc&quot;, :limit =&gt; 8, :conditions =&gt; [&quot;commented_on is NOT NULL&quot;])
+#    @hotness = Post.find(:all, :order =&gt; &quot;commented_on desc&quot;, :limit =&gt; 8, :conditions =&gt; [&quot;commented_on is NOT NULL&quot;])
     respond_to do |format|
       format.html # index.rhtml
       format.xml  { render :xml =&gt; @posts.to_xml }
     end
   end
 
+  def updated
+    @posts = Post.paginate(:all, :page =&gt; params[:page], :per_page =&gt; 20, :order =&gt; &quot;posts.commented_on desc, comments.created_on&quot;, :conditions =&gt; &quot;posts.commented_on &gt; '2005-11-07 19:22:40'&quot;, :include =&gt; [ :comments, :user ])
+    @title = &quot;rawdod&quot;
+    respond_to do |format|
+      format.html { render :action =&gt; &quot;index&quot; }# index.rhtml
+      format.xml  { render :xml =&gt; @posts.to_xml }
+    end
+  end
+
   def posts_by
     if user = User.find_by_login(params[:user])
     @posts = Post.paginate(:all, :page =&gt; params[:page], :per_page =&gt; 20, :conditions =&gt; [&quot;posts.user_id = ?&quot;, user.id ], :order =&gt; &quot;posts.created_on desc, comments.created_on&quot;, :include =&gt; [ :comments, :user ])</diff>
      <filename>app/controllers/posts_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,34 +1,8 @@
+&lt;%= link_to &quot;Order by Post&quot;, &quot;/&quot; %&gt; | &lt;%= link_to &quot;Order by Comment&quot;, &quot;/updated&quot; %&gt;
+&lt;br clear=&quot;both&quot;/&gt;
 &lt;br clear=&quot;both&quot;/&gt;
 
-&lt;% unless params[:page] || params[:user] %&gt;
-
-&lt;%= render :partial =&gt; &quot;post&quot;, :locals =&gt; { :post =&gt; @posts.shift } %&gt;
-
-&lt;div class=&quot;post&quot;&gt;
-
-&lt;!-- &lt;div class=&quot;post_title&quot;&gt;Comments Such as&lt;/div&gt; --&gt;
-
-&lt;% posts_on_page = @posts.collect { |p| p.id } %&gt;
-&lt;% for post in @hotness %&gt;
-&lt;% if posts_on_page.include? post.id %&gt;
-&lt;!-- 
-Post: &lt;%= link_to sanitize(truncate(post.title, 65) + &quot; - &quot; + truncate(post.body, 65)), &quot;#post_&quot; + post.id.to_s %&gt;&lt;br/&gt;
-Comment: &lt;%= link_to sanitize(truncate(post.comments.last.body, 65) + &quot; &quot; + post.comments.last.user.login), &quot;#comment_&quot; + post.comments.last.id.to_s %&gt; &lt;br/&gt;
---&gt;
-&lt;%= post.comments.last.user.login %&gt; comments on: &lt;%= link_to sanitize(truncate(post.title + &quot; &quot; + post.body, 60)), &quot;#post_&quot; + post.id.to_s %&gt;&lt;br/&gt;
-
-&lt;br/&gt;
-&lt;% else %&gt;
-&lt;%= link_to sanitize(truncate post.body, 60), :action =&gt; &quot;show&quot;, :id =&gt; post.id  %&gt;&lt;br/&gt;
-&lt;% end %&gt;
-&lt;% end %&gt;
-&lt;/div&gt;
-&lt;% end %&gt;
-
-
-&lt;hr width=&quot;80%&quot; color=&quot;#333333&quot; style=&quot;margin: 80px;&quot;/&gt;
-
-&lt;% if params[:page] || params[:user] %&gt;&lt;%= will_paginate(@posts, :outer_window =&gt; 0, :inner_window =&gt; 2) %&gt;&lt;% end%&gt;
+&lt;% if params[:page] || params[:user] %&gt;&lt;%= will_paginate(@posts, :outer_window =&gt; 0, :inner_window =&gt; 2) %&gt;&lt;% end %&gt;
 
 &lt;%= render :partial =&gt; &quot;post&quot;, :collection =&gt; @posts %&gt;
 </diff>
      <filename>app/views/posts/index.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 user  rawdod;
-worker_processes  2;
+worker_processes  4;
 #error_log  logs/error.log debug;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
@@ -22,9 +22,11 @@ http {
     server 127.0.0.1:6200;
     server 127.0.0.1:6201;
   }
+
+
   server {
     listen       1666;
-    client_max_body_size 50m;
+    client_max_body_size 500m;
     server_name  site.rawdod.com;
     root /home/rawdod/rawdod/public;
     index  index.html index.htm;
@@ -49,4 +51,8 @@ http {
         root   html;
     }
   }
+
+
+
+
 }</diff>
      <filename>config/nginx.conf</filename>
    </modified>
    <modified>
      <diff>@@ -19,6 +19,7 @@ ActionController::Routing::Routes.draw do |map|
   map.connect '/logout', :controller =&gt; &quot;user&quot;, :action =&gt; &quot;logout&quot;
   map.connect '/login', :controller =&gt; &quot;user&quot;, :action =&gt; &quot;login&quot;
   map.connect '/seen', :controller =&gt; &quot;user&quot;, :action =&gt; &quot;seen&quot;
+  map.connect '/updated', :controller =&gt; &quot;posts&quot;, :action =&gt; &quot;updated&quot;
   map.connect '/homepages', :controller =&gt; &quot;user&quot;, :action =&gt; &quot;homepages&quot;
   map.connect '/home/:user', :controller =&gt; &quot;user&quot;, :action =&gt; &quot;homepage&quot;
   map.connect '/home/:user/css', :controller =&gt; &quot;user&quot;, :action =&gt; &quot;css&quot;</diff>
      <filename>config/routes.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ba3be5d729b99b4e85fd485605ccf6ad072a601c</id>
    </parent>
  </parents>
  <author>
    <name>David Richards</name>
    <email>rawdod@gmail.com</email>
  </author>
  <url>http://github.com/oneman/rawdod/commit/412bad507dc5ab73419ad6955173105f920302cf</url>
  <id>412bad507dc5ab73419ad6955173105f920302cf</id>
  <committed-date>2009-11-07T21:31:10-08:00</committed-date>
  <authored-date>2009-11-07T21:31:10-08:00</authored-date>
  <message>different updated on thingie</message>
  <tree>83a64cf737a069a8e2c4faecb1bd5624f9d1ab91</tree>
  <committer>
    <name>David Richards</name>
    <email>rawdod@gmail.com</email>
  </committer>
</commit>
