]> git.ipfire.org Git - ipfire.org.git/blobdiff - webapp/handlers_rss.py
Make all absolute links use https:// instead of http://
[ipfire.org.git] / webapp / handlers_rss.py
index 21ae4acb70a46b89e44426eacc40323461385b8f..0ea9b4d885c6f0ebaee41ca92feb3f107576bd6e 100644 (file)
@@ -2,7 +2,6 @@
 
 import logging
 import textile
-import tornado.database
 
 import backend
 
@@ -63,13 +62,13 @@ class RSSNewsHandler(RSSHandler):
                        n.author = self.get_account(n.author_id)
 
                        # Render text
-                       n.text = textile.textile(n.text)
+                       n.text = textile.textile(n.text.decode("utf-8"))
 
-                       item = tornado.database.Row({
+                       item = backend.database.Row({
                                "title"     : n.title,
                                "author"    : n.author,
-                               "published" : n.date,
-                               "url"       : "http://www.ipfire.org/news/%s" % n.slug,
+                               "published" : n.published,
+                               "url"       : "https://www.ipfire.org/news/%s" % n.slug,
                                "markup"    : n.text,
                        })
                        items.append(item)