]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fancy url for favorites rss
authorEvan Prodromou <evan@controlyourself.ca>
Sun, 28 Sep 2008 17:56:26 +0000 (13:56 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sun, 28 Sep 2008 17:56:26 +0000 (13:56 -0400)
darcs-hash:20080928175626-5ed1f-cb8775fbff6825e56378f4b900f496cbc6cb3678.gz

htaccess.sample
lib/util.php

index cba4e69e6160b8daa930c9b4fae144c345b14caf..598ea9f7fb39529fcd95ddbea8a0e2f12f9bd8a5 100644 (file)
@@ -73,6 +73,7 @@ RewriteRule ^(\w+)/replies$ index.php?action=replies&nickname=$1 [L,QSA]
 RewriteRule ^(\w+)/replies/rss$ index.php?action=repliesrss&nickname=$1 [L,QSA]
 RewriteRule ^(\w+)/avatar/(original|96|48|24)$ index.php?action=avatarbynickname&nickname=$1&size=$2 [L,QSA]
 RewriteRule ^(\w+)/favorites$ index.php?action=showfavorites&nickname=$1 [L,QSA]
+RewriteRule ^(\w+)/favorites/rss$ index.php?action=favoritesrss&nickname=$1 [L,QSA]
 RewriteRule ^(\w+)/inbox$ index.php?action=inbox&nickname=$1 [L,QSA]
 RewriteRule ^(\w+)/outbox$ index.php?action=outbox&nickname=$1 [L,QSA]
 
index 20fe4ced67d0c1494aed61549a81775e0a64ee2b..87c7f8fb033f319fd1a83f639325ad6907bd161e 100644 (file)
@@ -945,6 +945,8 @@ function common_fancy_url($action, $args=NULL) {
                } else {
                        return common_path($args['nickname'].'/favorites');
                }
+        case 'favoritesrss':
+               return common_path($args['nickname'].'/favorites/rss');
         case 'showmessage':
                return common_path('message/' . $args['message']);
         case 'newmessage':