ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject incubator-ponymail git commit: Fixes #254
Date Mon, 21 Nov 2016 11:41:55 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 9c9873bec -> 4361f5e66


Fixes #254


Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/4361f5e6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/4361f5e6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/4361f5e6

Branch: refs/heads/master
Commit: 4361f5e668ef222e7827813eff514c0d17994f21
Parents: 9c9873b
Author: Francesco Chicchiriccò <ilgrosso@apache.org>
Authored: Mon Nov 21 12:41:49 2016 +0100
Committer: Francesco Chicchiriccò <ilgrosso@apache.org>
Committed: Mon Nov 21 12:41:49 2016 +0100

----------------------------------------------------------------------
 site/api/stats.lua | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/4361f5e6/site/api/stats.lua
----------------------------------------------------------------------
diff --git a/site/api/stats.lua b/site/api/stats.lua
index 854d950..580b10a 100644
--- a/site/api/stats.lua
+++ b/site/api/stats.lua
@@ -691,6 +691,7 @@ function handle(r)
                     table.insert(threads, emails[mid])
                 end
                 if not statsOnly then
+                    email.body = (email.body ~= JSON.null) and email.body or ""
                     threads[#threads].body = #email.body < 300 and email.body or email.body:sub(1,300)
.. "..."
                 end
             end


Mime
View raw message