dex: src/rss.c
===================================================================
fossil diff /Users/dmitry/Projects/Other/fossil/src/rss.c
--- src/rss.c
+++ src/rss.c
@@ -44,10 +44,15 @@
 /*
 ** WEBPAGE: timeline.rss
 */
 
 void page_timeline_rss(void){
+
+   // Do not output RSS if it's turned off in Timeline preferences
+   if (!db_get_boolean("timeline-generate-rss", 1))
+      return;
+
   Stmt q;
   int nLine=0;
   char *zPubDate, *zProjectName, *zProjectDescr, *zFreeProjectName=0;
   Blob bSQL;
   const char *zType = PD("y","all"); /* Type of events.  All if NULL */

Index: src/setup.c
===================================================================
fossil diff /Users/dmitry/Projects/Other/fossil/src/setup.c
--- src/setup.c
+++ src/setup.c
@@ -783,10 +783,13 @@
   entry_attribute("Max timeline comment length", 6,
                   "timeline-max-comment", "tmc", "0");
   @ <p>The maximum length of a comment to be displayed in a timeline.
   @ "0" there is no length limit.</p>
 
+  @ <hr>
+  onoff_attribute("Generate RSS feed for timeline",
+                  "timeline-generate-rss", "tgr", 1);
   @ <hr>
   @ <p><input type="submit"  name="submit" value="Apply Changes"></p>
   @ </form>
   db_end_transaction(0);
   style_footer();

