]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't add PHPSESSID parameter onto notice and conversation URIs if we save a notice...
authorBrion Vibber <brion@pobox.com>
Tue, 23 Mar 2010 16:50:01 +0000 (09:50 -0700)
committerBrion Vibber <brion@pobox.com>
Tue, 23 Mar 2010 16:54:24 +0000 (09:54 -0700)
This was being triggered by welcomebot messages created at account creation time, then propagated through replies.

classes/Conversation.php
lib/util.php

index ea8bd87b5636907893101255dccc67dac81942d4..f540004ef39b6f9de2c7299ad80fbcd492626aff 100755 (executable)
@@ -63,7 +63,8 @@ class Conversation extends Memcached_DataObject
         }
 
         $orig = clone($conv);
-        $orig->uri = common_local_url('conversation', array('id' => $id));
+        $orig->uri = common_local_url('conversation', array('id' => $id),
+                                      null, null, false);
         $result = $orig->update($conv);
 
         if (empty($result)) {
index a30d69100289f08a94ba8e850bbcb1ed6f127e2e..795997868305ff09b2ada3614cf7a9a8d1089cf3 100644 (file)
@@ -1529,7 +1529,8 @@ function common_user_uri(&$user)
 function common_notice_uri(&$notice)
 {
     return common_local_url('shownotice',
-                            array('notice' => $notice->id));
+                            array('notice' => $notice->id),
+                            null, null, false);
 }
 
 // 36 alphanums - lookalikes (0, O, 1, I) = 32 chars = 5 bits