File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,12 @@ def item_title(self, item):
57
57
return item .title
58
58
59
59
def item_description (self , item ):
60
- return item .body
60
+ note = (
61
+ '<p><em>You are only seeing the long-form articles from my blog. '
62
+ 'Subscribe to <a href="https://simonwillison.net/atom/everything/">/atom/everything/</a> '
63
+ 'to get all of my posts, or take a look at my <a href="https://simonwillison.net/about/#subscribe">other subscription options</a>.</em></p>'
64
+ )
65
+ return item .body + note
61
66
62
67
63
68
class Blogmarks (Base ):
Original file line number Diff line number Diff line change @@ -287,6 +287,14 @@ def test_draft_items_not_in_feeds(self):
287
287
self .assertContains (response6 , draft_blogmark .link_title )
288
288
self .assertContains (response6 , draft_quotation .source )
289
289
290
+ def test_entries_feed_includes_subscribe_note (self ):
291
+ EntryFactory ()
292
+ response = self .client .get ("/atom/entries/" )
293
+ self .assertIn (
294
+ "You are only seeing the" ,
295
+ response .content .decode (),
296
+ )
297
+
290
298
def test_og_description_strips_markdown (self ):
291
299
blogmark = BlogmarkFactory (commentary = "This **has** *markdown*" , use_markdown = True )
292
300
response = self .client .get (blogmark .get_absolute_url ())
You can’t perform that action at this time.
0 commit comments