<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -25,8 +25,8 @@ def authenticate?; $config[:tumblr][:authenticate] || false; end
 
 # Connect to database
 $config[:database] = YAML.load_file( File.dirname(__FILE__)+'/config/database.yml')
-ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__)+'/database.log')
-ActiveRecord::Base.colorize_logging = true
+#ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__)+'/database.log')
+#ActiveRecord::Base.colorize_logging = true
 ActiveRecord::Base.establish_connection($config[:database][ (ENV['MERB_ENV'] || :development).to_sym])
 
 # TODO: put in or get from a lib, like extlib, or the future merbified ActiveSupport
@@ -67,7 +67,7 @@ end
 def save(data)
     
   tumblelog_url = /(http:\/\/[^\/]*)(\/.*)/.match(data[:url])[1]
-  puts &quot;#{data[:type]}, URL = #{data[:url]}, author = #{tumblelog_url}&quot;
+  # puts &quot;#{data[:type]}, URL = #{data[:url]}, author = #{tumblelog_url}&quot;
   
   # Find/create the user (tumblelog) who owns this post
   user = User.find_or_initialize_by_url(tumblelog_url)
@@ -82,7 +82,7 @@ def save(data)
         
   # Descend to the page and capture reblogging info (if we're logged in &amp; reblogging stuff)
   obj.reblog_link = post_info_for(data[:url])[:reblog_link] if authenticate?
-  puts &quot;&gt; reblog link: #{obj.reblog_link}&quot;
+  # puts &quot;&gt; reblog link: #{obj.reblog_link}&quot;
   reblog_post(obj) if authenticate? &amp;&amp; !obj.reblog_link.blank?
   obj.save!  
 rescue
@@ -109,7 +109,7 @@ end
 
 # post to tumblr (by reblogging it to your specified group)
 def reblog_post(post)
-  # puts &quot;&gt; reblogging: #{post.attributes['type']}, #{post.url}, reblog_link =&gt; #{post.reblog_link}&quot;
+  puts &quot;&gt; reblogging: #{post.attributes['type']}, #{post.url}, reblog_link =&gt; #{post.reblog_link}&quot;
   raise RuntimeError, &quot;Can't post w/o a reblog link&quot; if post.reblog_link.nil? or post.reblog_link.empty? or post.reblog_link == '/'
   
   type = post.attributes['type'] # FIXME: stupid not-overriding-STI hackthrough nonsense
@@ -127,7 +127,7 @@ def reblog_post(post)
 
   # ....and submit the form
   page = $agent.submit(form)
-  puts &quot;&gt; done; #{page.body.length} bytes on resulting page.&quot;
+  # puts &quot;&gt; done; #{page.body.length} bytes on resulting page.&quot;
 rescue
   STDERR.puts &quot;Error submitting reblog: #{$!}&quot;
 end</diff>
      <filename>runner.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,6 +7,6 @@ I only have &lt;%= time_ago_in_words(Post.find(:first).created_at) %&gt; worth of data
 &lt;ol id=&quot;leaderboard&quot;&gt;
 &lt;% @users.group_by { |g| g.post_count }.sort_by { |post_count,users| post_count.to_i }.reverse.each { |post_count, users| -%&gt;
 	&lt;li&gt;&lt;strong&gt;&lt;%= post_count %&gt; &lt;%= post_count.to_i &gt; 1 ? 'posts' : 'post' %&gt;&lt;/strong&gt; &lt;% if users.length &gt; 1 %&gt;&lt;%= users.length %&gt; people &lt;% end %&gt;
-	&lt;%= users.collect { |u| &quot;&lt;a href=\&quot;#{u.url}\&quot;&gt;#{u.name}&lt;/a&gt;&quot; }.join(', ') %&gt; &lt;span class=&quot;post-count&quot;&gt;&lt;/span&lt;/li&gt;
+	&lt;%= users.collect { |u| &quot;&lt;a href=\&quot;#{u.url}\&quot;&gt;#{u.name || u.url.gsub('http://','')}&lt;/a&gt;&quot; }.join(', ') %&gt; &lt;span class=&quot;post-count&quot;&gt;&lt;/span&lt;/li&gt;
 &lt;% } -%&gt;
 &lt;/ol&gt; &lt;!-- #leaderboard --&gt;</diff>
      <filename>views/leaderboard.html.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4b5fd274b44072045c3d9be96373dda3426e4f32</id>
    </parent>
    <parent>
      <id>90f9db7e7782a0169bb6d847114962bffd5a1dba</id>
    </parent>
  </parents>
  <author>
    <name>Jamie Wilkinson</name>
    <email>jamie@tramchase.com</email>
  </author>
  <url>http://github.com/jamiew/tumblr-radarchive/commit/a74143c7ed3e84f248eed9eedc8260aac01cfd8e</url>
  <id>a74143c7ed3e84f248eed9eedc8260aac01cfd8e</id>
  <committed-date>2009-01-22T16:51:13-08:00</committed-date>
  <authored-date>2009-01-22T16:51:13-08:00</authored-date>
  <message>Merge branch 'master' of git@github.com:jamiew/tumblr-radarchive</message>
  <tree>806c70804ded6d4ca0bea83a7e5a5a1349095fff</tree>
  <committer>
    <name>Jamie Wilkinson</name>
    <email>jamie@tramchase.com</email>
  </committer>
</commit>
