summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-28 13:56:26 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-28 13:56:26 -0400
commit47edd73581acbd44026e68871f61086ce211908a (patch)
tree2a8c2df4d644c9565e1f8eb3c6c3586db77d567a
parentdc5f47ab4a500a4ba128e916c26eb1d55a67049b (diff)
fancy url for favorites rss
darcs-hash:20080928175626-5ed1f-cb8775fbff6825e56378f4b900f496cbc6cb3678.gz
-rw-r--r--htaccess.sample1
-rw-r--r--lib/util.php2
2 files changed, 3 insertions, 0 deletions
diff --git a/htaccess.sample b/htaccess.sample
index cba4e69e6..598ea9f7f 100644
--- a/htaccess.sample
+++ b/htaccess.sample
@@ -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]
diff --git a/lib/util.php b/lib/util.php
index 20fe4ced6..87c7f8fb0 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -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':