summaryrefslogtreecommitdiff
path: root/www/ikiwiki/patches
diff options
context:
space:
mode:
Diffstat (limited to 'www/ikiwiki/patches')
-rw-r--r--www/ikiwiki/patches/patch-ab13
-rw-r--r--www/ikiwiki/patches/patch-ac51
2 files changed, 0 insertions, 64 deletions
diff --git a/www/ikiwiki/patches/patch-ab b/www/ikiwiki/patches/patch-ab
deleted file mode 100644
index b4695bd8016..00000000000
--- a/www/ikiwiki/patches/patch-ab
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2008/09/22 15:09:05 schmonz Exp $
-
---- IkiWiki/Plugin/editdiff.pm.orig 2008-09-08 12:30:11.000000000 -0400
-+++ IkiWiki/Plugin/editdiff.pm
-@@ -56,7 +56,7 @@ sub formbuilder_setup { #{{{
- my %params=@_;
- my $form=$params{form};
-
-- return if defined ! $form->field("do") || $form->field("do") ne "edit";
-+ return if ! defined $form->field("do") || $form->field("do") ne "edit";
-
- my $page=$form->field("page");
- $page = IkiWiki::possibly_foolish_untaint($page);
diff --git a/www/ikiwiki/patches/patch-ac b/www/ikiwiki/patches/patch-ac
deleted file mode 100644
index 094736495d8..00000000000
--- a/www/ikiwiki/patches/patch-ac
+++ /dev/null
@@ -1,51 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2008/09/22 15:09:05 schmonz Exp $
-
---- IkiWiki/Plugin/aggregate.pm.orig 2008-09-08 12:30:11.000000000 -0400
-+++ IkiWiki/Plugin/aggregate.pm
-@@ -421,7 +421,7 @@ sub expire () { #{{{
- my $count=0;
- my %seen;
- foreach my $item (sort { $IkiWiki::pagectime{$b->{page}} <=> $IkiWiki::pagectime{$a->{page}} }
-- grep { exists $_->{page} && $_->{feed} eq $feed->{name} && $IkiWiki::pagectime{$_->{page}} }
-+ grep { exists $_->{page} && $_->{feed} eq $feed->{name} }
- values %guids) {
- if ($feed->{expireage}) {
- my $days_old = (time - $IkiWiki::pagectime{$item->{page}}) / 60 / 60 / 24;
-@@ -520,12 +520,18 @@ sub aggregate (@) { #{{{
- }
-
- foreach my $entry ($f->entries) {
-+ my $content=$content=$entry->content->body;
-+ # atom feeds may have no content, only a summary
-+ if (! defined $content && ref $entry->summary) {
-+ $content=$entry->summary->body;
-+ }
-+
- add_page(
- feed => $feed,
- copyright => $f->copyright,
- title => defined $entry->title ? decode_entities($entry->title) : "untitled",
- link => $entry->link,
-- content => defined $entry->content->body ? $entry->content->body : "",
-+ content => defined $content ? $content : "",
- guid => defined $entry->id ? $entry->id : time."_".$feed->{name},
- ctime => $entry->issued ? ($entry->issued->epoch || time) : time,
- );
-@@ -612,10 +618,13 @@ sub add_page (@) { #{{{
- writefile(htmlfn($guid->{page}), $config{srcdir},
- $template->output);
-
-- # Set the mtime, this lets the build process get the right creation
-- # time on record for the new page.
-- utime $mtime, $mtime, pagefile($guid->{page})
-- if defined $mtime && $mtime <= time;
-+ if (defined $mtime && $mtime <= time) {
-+ # Set the mtime, this lets the build process get the right
-+ # creation time on record for the new page.
-+ utime $mtime, $mtime, pagefile($guid->{page});
-+ # Store it in pagectime for expiry code to use also.
-+ $IkiWiki::pagectime{$guid->{page}}=$mtime;
-+ }
- } #}}}
-
- sub htmlescape ($) { #{{{