summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-11-13 14:56:24 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-11-13 14:56:24 -0500
commit5ccf68f11329779f9e173355fe76bff85203a851 (patch)
tree2a99ad04b0b68571f6d1ae5c000eab5d726f789b
parentb9f264d066bd71e5a995f339fcf25181539c9b8f (diff)
inline: Do not generated feeds for nested inlines.
My experience is that when inlines are nested, the old behavior of generating feeds for the nested inlines was never really desired. Since the feeds were numbered sequentially, the numbers could easily change, and it did not make sense to subscribe to or use those feeds. And generating those nested feeds often meant a lot of unnecessary calculation, and data being written. So, I dropped them. Looking back, nested feeds originally were a free side effect of properly handing multiple feeds on one page. Of course, that is still supported.
-rw-r--r--IkiWiki/Plugin/inline.pm2
-rw-r--r--debian/changelog1
2 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
index 942df6f89..001d2ed1a 100644
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -159,7 +159,7 @@ sub preprocess_inline (@) {
my $rss=(($config{rss} || $config{allowrss}) && exists $params{rss}) ? yesno($params{rss}) : $config{rss};
my $atom=(($config{atom} || $config{allowatom}) && exists $params{atom}) ? yesno($params{atom}) : $config{atom};
my $quick=exists $params{quick} ? yesno($params{quick}) : 0;
- my $feeds=exists $params{feeds} ? yesno($params{feeds}) : !$quick;
+ my $feeds=! $nested && (exists $params{feeds} ? yesno($params{feeds}) : !$quick);
my $emptyfeeds=exists $params{emptyfeeds} ? yesno($params{emptyfeeds}) : 1;
my $feedonly=yesno($params{feedonly});
if (! exists $params{show} && ! $archive) {
diff --git a/debian/changelog b/debian/changelog
index 1a703b11f..5a2d94e23 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,7 @@ ikiwiki (3.20091032) UNRELEASED; urgency=low
* httpauth: Add cgiauthurl setting that can be used to do http basic auth
only when ikiwiki needs authentication, rather than for any access to
the cgi/wiki.
+ * inline: Do not generated feeds for nested inlines.
-- Joey Hess <joeyh@debian.org> Fri, 06 Nov 2009 12:04:29 -0500