<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -150,6 +150,8 @@
          *
          * Calls the @add_post@ trigger with the inserted post and extra options.
          *
+         * Note: The default parameter values are empty here so that the fallbacks work properly.
+         *
          * Parameters:
          *     $values - The data to insert.
          *     $clean - The sanitized URL (or empty to default to &quot;(feather).(new post's id)&quot;).
@@ -175,10 +177,10 @@
                             $url        = &quot;&quot;,
                             $feather    = null,
                             $user       = null,
-                            $pinned     = false,
-                            $status     = &quot;public&quot;,
-                            $created_at = null,
-                            $updated_at = &quot;0000-00-00 00:00:00&quot;,
+                            $pinned     = null,
+                            $status     = &quot;&quot;,
+                            $created_at = &quot;&quot;,
+                            $updated_at = &quot;&quot;,
                             $trackbacks = &quot;&quot;,
                             $pingbacks  = true,
                             $options    = array()) {</diff>
      <filename>includes/model/Post.php</filename>
    </modified>
    <modified>
      <diff>@@ -15,6 +15,8 @@ SERVER = Net::HTTP.new &quot;localhost&quot;
 
 CHYRP = &quot;/chyrp&quot;
 
+URL = &quot;http://localhost/chyrp&quot;
+
 HEADERS = {
   &quot;Cookie&quot; =&gt; &quot;ChyrpSession=e5f9cd17ab00580649ce618791b5675a&quot;, # NOTE: This has to be changed to keep in sync with your browser.
   &quot;User-Agent&quot; =&gt; &quot;tester.rb&quot;
@@ -78,9 +80,9 @@ class Chyrp &lt; Test::Unit::TestCase
   def test_view_post
     resp, page = test_index
     page = Hpricot(page)
-    return unless page =~ /class=&quot;post /
+    return unless page.to_s =~ /class=&quot;post /
 
-    post_url = (page/&quot;.post:first/h2/a&quot;).attr(&quot;href&quot;)
+    post_url = (page/&quot;.post:first/h2/a&quot;).attr(&quot;href&quot;).sub(URL, &quot;&quot;)
 
     get post_url
   end
@@ -100,7 +102,7 @@ class Chyrp &lt; Test::Unit::TestCase
     first_page = (page/&quot;#sidebar/ul:nth(0)/li:nth(0)/a&quot;)
     return unless first_page
 
-    page_url = first_page.attr(&quot;href&quot;)
+    page_url = first_page.attr(&quot;href&quot;).sub(URL, &quot;&quot;)
 
     get page_url
   end</diff>
      <filename>tester.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3544192d8a4eac018f312cb9eb6f6d4c7076754f</id>
    </parent>
  </parents>
  <author>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </author>
  <url>http://github.com/vito/chyrp/commit/28b3e8935d2197ed887168cf952c9716db2227c5</url>
  <id>28b3e8935d2197ed887168cf952c9716db2227c5</id>
  <committed-date>2008-11-01T07:43:34-07:00</committed-date>
  <authored-date>2008-11-01T07:43:34-07:00</authored-date>
  <message>* Fixed creating posts ignoring various externalities because I added pleasant default values to its parameters.
* Fixed the tester's &quot;view page&quot; and &quot;view post&quot; tests.</message>
  <tree>f8a3e4967b064fa7ea41d339c2c490c57c5c2cf7</tree>
  <committer>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </committer>
</commit>
