No need for ellipses on short RSS entries. veekun-promotions/2010091501 veekun-promotions/2010091901
authorEevee <git@veekun.com>
Mon, 13 Sep 2010 07:25:19 +0000 (00:25 -0700)
committerEevee <git@veekun.com>
Mon, 13 Sep 2010 07:25:19 +0000 (00:25 -0700)
splinext/frontpage/sources.py

index 21c6270..9b70d4b 100644 (file)
@@ -193,6 +193,11 @@ class FeedSource(CachedSource):
                 # If there be a summary, cheerfully trust that it's actually a
                 # summary
                 content = entry.summary
                 # If there be a summary, cheerfully trust that it's actually a
                 # summary
                 content = entry.summary
+            elif 'content' in entry and \
+                len(entry.content[0].value) <= self.SUMMARY_LENGTH:
+
+                # Full content is short; use as-is!
+                content = entry.entry.content[0].value
             elif 'content' in entry:
                 # Full content is way too much, especially for my giant blog posts.
                 # Cut this down to some arbitrary number of characters, then feed
             elif 'content' in entry:
                 # Full content is way too much, especially for my giant blog posts.
                 # Cut this down to some arbitrary number of characters, then feed