From 834df790ceb2a6a3425e934ec877963f896ebca4 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 7 Jul 2008 03:30:25 -0400 Subject: [PATCH] fancy url for replies rss darcs-hash:20080707073025-84dde-724deaf0db1c40a95296b53b895a60a04ff7f957.gz --- htaccess.sample | 1 + lib/util.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/htaccess.sample b/htaccess.sample index 1cf21ec4c6..35c0ef7e31 100644 --- a/htaccess.sample +++ b/htaccess.sample @@ -46,5 +46,6 @@ 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+)/replies/rss$ index.php?action=repliesrss&nickname=$1 [L,QSA] RewriteRule ^(\w+)$ index.php?action=showstream&nickname=$1 [L,QSA] diff --git a/lib/util.php b/lib/util.php index 1cb24be04e..3301c02336 100644 --- a/lib/util.php +++ b/lib/util.php @@ -721,6 +721,8 @@ function common_fancy_url($action, $args=NULL) { } case 'allrss': return common_path($args['nickname'].'/all/rss'); + case 'repliesrss': + return common_path($args['nickname'].'/replies/rss'); case 'userrss': return common_path($args['nickname'].'/rss'); case 'showstream': -- 2.39.5