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


The following commit(s) were added to refs/heads/master by this push:
     new 6b93fdb  OF: doc sources only ever have one permalink set
6b93fdb is described below

commit 6b93fdb2f7e0e767c915a13ddcecf9b056ede06c
Author: Daniel Gruno <[email protected]>
AuthorDate: Mon Sep 6 23:11:50 2021 -0500

    OF: doc sources only ever have one permalink set
---
 server/plugins/messages.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/plugins/messages.py b/server/plugins/messages.py
index c89aeed..b1340bd 100644
--- a/server/plugins/messages.py
+++ b/server/plugins/messages.py
@@ -257,7 +257,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": {"permalinks": 
permalink}}]}}},
+        body={"query": {"bool": {"must": [{"match": {"permalink": 
permalink}}]}}},
     )
     if len(res["hits"]["hits"]) == 1:
         doc = res["hits"]["hits"][0]

Reply via email to