]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add replies fancy url and include Reply class
authorEvan Prodromou <evan@prodromou.name>
Mon, 7 Jul 2008 03:23:48 +0000 (23:23 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 7 Jul 2008 03:23:48 +0000 (23:23 -0400)
darcs-hash:20080707032348-84dde-e217ed87ae6947d6fdda64dc105ac4a433c7793a.gz

htaccess.sample
lib/common.php
lib/util.php

index 992cecb372aa287c64bca784f27efe77d69d7972..1cf21ec4c675175ebe94201f7e44ef7df33dd15f 100644 (file)
@@ -45,5 +45,6 @@ RewriteRule ^(\w+)/rss$ index.php?action=userrss&nickname=$1 [L,QSA]
 RewriteRule ^(\w+)/all$ index.php?action=all&nickname=$1 [L,QSA]
 RewriteRule ^(\w+)/all/rss$ index.php?action=allrss&nickname=$1 [L,QSA]
 RewriteRule ^(\w+)/foaf$ index.php?action=foaf&nickname=$1 [L,QSA]
+RewriteRule ^(\w+)/replies$ index.php?action=replies&nickname=$1 [L,QSA]
 
 RewriteRule ^(\w+)$ index.php?action=showstream&nickname=$1 [L,QSA]
index d3d9fc87f1b0f353a4818ad57ed3b660ce2c8d13..6be17c091450b091e46484d5d2d34f03700bd520 100644 (file)
@@ -98,5 +98,6 @@ require_once(INSTALLDIR.'/classes/User.php');
 require_once(INSTALLDIR.'/classes/Confirm_address.php');
 require_once(INSTALLDIR.'/classes/Remember_me.php');
 require_once(INSTALLDIR.'/classes/Queue_item.php');
+require_once(INSTALLDIR.'/classes/Reply.php');
 
 require_once('markdown.php');
index 0aa1bd53ec770cb06f456c80f2cdb865302b590c..f540596aad6a799a91c9088805c98930e3995151 100644 (file)
@@ -699,6 +699,7 @@ function common_fancy_url($action, $args=NULL) {
         case 'subscriptions':
         case 'subscribers':
         case 'all':
+        case 'replies':
                if ($args && $args['page']) {
                        return common_path($args['nickname'].'/'.$action.'?page=' . $args['page']);
                } else {