witten
/
luminotes
Archived
1
0
Fork 0

Fixing blog rss to use friendly ids in URLs.

This commit is contained in:
Dan Helfman 2008-11-18 16:47:55 -08:00
parent bd4afceb26
commit c5a2765685
1 changed files with 2 additions and 2 deletions

View File

@ -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 ],
)