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 a7fb225 have a default value
a7fb225 is described below
commit a7fb225ef13aab38848148286c9ec003ba6580b6
Author: Daniel Gruno <[email protected]>
AuthorDate: Tue Nov 16 00:34:30 2021 +0100
have a default value
---
server/endpoints/thread.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/endpoints/thread.py b/server/endpoints/thread.py
index e0ad54e..dbcd65b 100644
--- a/server/endpoints/thread.py
+++ b/server/endpoints/thread.py
@@ -26,7 +26,7 @@ import typing
async def process(
server: plugins.server.BaseServer, session: plugins.session.SessionObject,
indata: dict,
) -> typing.Optional[dict]:
- mailid = indata.get("id")
+ mailid = indata.get("id", "")
email = await plugins.messages.get_email(session, permalink=mailid)
if not email:
mailid = mailid.replace(" ", "+") # Some Message-IDs have + in them,
this can confuse since + means space.