Browse Source

Fixing blog rss to use friendly ids in URLs.

Dan Helfman 9 years ago
parent
commit
c5a2765685
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      view/Forum_rss.py

+ 2
- 2
view/Forum_rss.py View File

@@ -34,9 +34,9 @@ class Forum_rss( Rss_channel ):
34 34
       full_forum_name,
35 35
       [ Rss_item(
36 36
         title = cgi.escape( thread.name ),
37
-        link = os.path.join( forum_path, thread.object_id ),
37
+        link = os.path.join( forum_path, ( forum_name == u"blog" ) and thread.friendly_id or thread.object_id ),
38 38
         description = cgi.escape( thread.name ),
39 39
         date = thread.revision.strftime( "%Y-%m-%dT%H:%M:%SZ" ),
40
-        guid = os.path.join( forum_path, thread.object_id ),
40
+        guid = os.path.join( forum_path, ( forum_name == u"blog" ) and thread.friendly_id or thread.object_id ),
41 41
       ) for thread in threads ],
42 42
     )