a6653f5f6733

Yeah, there are going to be a bunch of tiny commits while I test out this Bird Feeder integration, sorry.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 15 Jan 2009 20:33:33 -0500
parents 6c07f46c52d4
children bd03e6b9084c
branches/tags (none)
files rss/feeds.py

Changes

--- a/rss/feeds.py	Thu Jan 15 20:27:20 2009 -0500
+++ b/rss/feeds.py	Thu Jan 15 20:33:33 2009 -0500
@@ -112,7 +112,7 @@
         return '%s/?FeederAction=clicked&feed=%s&seed=%s&seed_title=%s' % \
                (feeder,
                 'Thoughts', 
-                self.item_author_link + item['item'].get_absolute_url(), 
+                link, 
                 title)
     
 
@@ -148,18 +148,23 @@
     
     def item_link(self, item):
         title = 'Steve Losh / '
+        new_link = ''
         if item['type'] == 'blog':
             title += item['item'].title
+            new_link = self.item_author_link + item['item'].get_absolute_url()
         elif item['type'] == 'project':
             title += item['item'].name
+            new_link = self.item_author_link + item['item'].get_absolute_url()
         elif item['type'] == 'thought-text':
             title += 'Thoughts / ' + str(item['item'].id)
+            new_link = self.item_author_link + '/thoughts/'
         elif item['type'] == 'thought-link':
             title += 'Thoughts / ' + item['item'].url
+            new_link = self.item_author_link + '/thoughts/'
         
         return '%s/?FeederAction=clicked&feed=%s&seed=%s&seed_title=%s' % \
                (feeder,
                 'All', 
-                self.item_author_link + item['item'].get_absolute_url(), 
+                new_link, 
                 title)