From c5a2765685129d71ba652e219a84c20ed8bed5cb Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Tue, 18 Nov 2008 16:47:55 -0800 Subject: [PATCH] Fixing blog rss to use friendly ids in URLs. --- view/Forum_rss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/Forum_rss.py b/view/Forum_rss.py index 4d7ea87..f533e1b 100644 --- a/view/Forum_rss.py +++ b/view/Forum_rss.py @@ -34,9 +34,9 @@ class Forum_rss( Rss_channel ): full_forum_name, [ Rss_item( title = cgi.escape( thread.name ), - link = os.path.join( forum_path, thread.object_id ), + link = os.path.join( forum_path, ( forum_name == u"blog" ) and thread.friendly_id or thread.object_id ), description = cgi.escape( thread.name ), date = thread.revision.strftime( "%Y-%m-%dT%H:%M:%SZ" ), - guid = os.path.join( forum_path, thread.object_id ), + guid = os.path.join( forum_path, ( forum_name == u"blog" ) and thread.friendly_id or thread.object_id ), ) for thread in threads ], )