From 67fa0b5a8f3ea9a0d4df1c8d88df1439f4ccf785 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 13 Oct 2020 18:09:22 +0100 Subject: [PATCH] Don't include footer --- blog.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/blog.py b/blog.py index 5d1019ef..1a4c9875 100644 --- a/blog.py +++ b/blog.py @@ -499,7 +499,10 @@ def htmlBlogPageRSS2(authorized: bool, session, blogsIndex = baseDir + '/accounts/' + \ nickname + '@' + domain + '/tlblogs.index' if not os.path.isfile(blogsIndex): - return blogRSS2 + rss2Footer() + if includeHeader: + return blogRSS2 + rss2Footer() + else: + return blogRSS2 timelineJson = createBlogsTimeline(session, baseDir, nickname, domain, port, @@ -525,7 +528,10 @@ def htmlBlogPageRSS2(authorized: bool, session, domainFull, item, None, True) - return blogRSS2 + rss2Footer() + if includeHeader: + return blogRSS2 + rss2Footer() + else: + return blogRSS2 def htmlBlogPageRSS3(authorized: bool, session,