You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2020/09/06 17:35:00 UTC

[incubator-ponymail-foal] 15/15: permalinks with an S

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

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit d5bc8d06950dd89d1e09cfd579ec305a8fadef6d
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Sep 6 19:33:51 2020 +0200

    permalinks with an S
---
 server/plugins/mbox.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/plugins/mbox.py b/server/plugins/mbox.py
index 1da3f43..c938f24 100644
--- a/server/plugins/mbox.py
+++ b/server/plugins/mbox.py
@@ -207,7 +207,7 @@ async def get_source(session: plugins.session.SessionObject, permalink: str = No
     res = await session.database.search(
         index=doctype,
         size=1,
-        body={"query": {"bool": {"must": [{"match": {"permalink": permalink}}]}}},
+        body={"query": {"bool": {"must": [{"match": {"permalinks": permalink}}]}}},
     )
     if len(res["hits"]["hits"]) == 1:
         doc = res["hits"]["hits"][0]