whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: recover from invalid message (no time)
Date Fri, 10 Nov 2017 02:59:37 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys 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 4d97bdc  recover from invalid message (no time)
4d97bdc is described below

commit 4d97bdccbe1ecb80e38b137d9e0eec43635e14b9
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Thu Nov 9 21:59:13 2017 -0500

    recover from invalid message (no time)
---
 www/secretary/workbench/models/mailbox.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/secretary/workbench/models/mailbox.rb b/www/secretary/workbench/models/mailbox.rb
index 4a449b5..f0a1d55 100644
--- a/www/secretary/workbench/models/mailbox.rb
+++ b/www/secretary/workbench/models/mailbox.rb
@@ -162,7 +162,7 @@ class Mailbox
     # extract relevant fields from the headers
     headers.map! do |id, message|
       {
-        time: message[:time],
+        time: message[:time] || '',
         href: "#{message[:source]}/#{id}/",
         from: message[:name] || message[:from],
         subject: message['Subject'],

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message