This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 0e8b021c Reparse needs active node
0e8b021c is described below

commit 0e8b021c653eb0cc43f33ef314ed804305810ed8
Author: Sebb <[email protected]>
AuthorDate: Fri Aug 2 15:10:14 2024 +0100

    Reparse needs active node
---
 www/secretary/workbench/server.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/secretary/workbench/server.rb 
b/www/secretary/workbench/server.rb
index f563cfe6..d295917c 100644
--- a/www/secretary/workbench/server.rb
+++ b/www/secretary/workbench/server.rb
@@ -230,6 +230,8 @@ end
 
 # reparse an existing message
 get %r{/(\d{6})/(\w+)/_reparse_} do |month, hash|
+  return [503, UNAVAILABLE] if UNAVAILABLE
+
   mailbox = Mailbox.new(month)
   message = mailbox.find(hash)
   pass unless message

Reply via email to