diff options
Diffstat (limited to 'overlays/patches/public-inbox/0004-view-don-t-500-if-no-mail-received-yet.patch')
-rw-r--r-- | overlays/patches/public-inbox/0004-view-don-t-500-if-no-mail-received-yet.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/overlays/patches/public-inbox/0004-view-don-t-500-if-no-mail-received-yet.patch b/overlays/patches/public-inbox/0004-view-don-t-500-if-no-mail-received-yet.patch new file mode 100644 index 000000000000..eb33468e1992 --- /dev/null +++ b/overlays/patches/public-inbox/0004-view-don-t-500-if-no-mail-received-yet.patch @@ -0,0 +1,25 @@ +From 2712913f07d83a6a33bbdc55a1edee0a008e5b2e Mon Sep 17 00:00:00 2001 +From: Alyssa Ross <hi@alyssa.is> +Date: Thu, 16 Jan 2020 18:09:12 +0000 +Subject: [PATCH 4/5] view: don't 500 if no mail received yet + +--- + lib/PublicInbox/View.pm | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm +index aebf7fe9..b40108bc 100644 +--- a/lib/PublicInbox/View.pm ++++ b/lib/PublicInbox/View.pm +@@ -1083,7 +1083,7 @@ sub acc_topic { + sub dump_topics { + my ($ctx) = @_; + my $order = delete $ctx->{order}; # [ ds, subj1, subj2, subj3, ... ] +- if (!@$order) { ++ if (!defined $order || !@$order) { + $ctx->{-html_tip} = '<pre>[No topics in range]</pre>'; + return 404; + } +-- +2.26.1 + |