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/incubator-ponymail.git


The following commit(s) were added to refs/heads/master by this push:
     new def1e3b  Duplicate code - done later
def1e3b is described below

commit def1e3b80bf4da9ce3484507da77ee01373dea04
Author: Sebb <[email protected]>
AuthorDate: Tue Oct 5 13:59:36 2021 +0100

    Duplicate code - done later
---
 site/api/thread.lua | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/site/api/thread.lua b/site/api/thread.lua
index 741ac28..1fc0f9b 100644
--- a/site/api/thread.lua
+++ b/site/api/thread.lua
@@ -84,9 +84,6 @@ function handle(r)
     -- Try searching by mid if not found, for backward compat
     if not doc or not doc.mid then
         local docs = elastic.find("message-id:\"" .. r:escape(eid) .. "\"", 1, 
"mbox")
-        if #docs == 1 then
-            doc = docs[1]
-        end
         if #docs == 0 and #eid == utils.SHORTENED_LINK_LEN then
             docs = elastic.find("mid:" .. r:escape(eid) .. "*", 1, "mbox")
         end

Reply via email to