From 131aabdc036bf7f14b7c91dedfe0fd0e1ddbf7d1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 28 Sep 2021 10:44:30 +0100 Subject: [PATCH] Remove ending for conversation id --- conversation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conversation.py b/conversation.py index ba35c5ba8..f43b23419 100644 --- a/conversation.py +++ b/conversation.py @@ -10,6 +10,7 @@ __module_group__ = "Timeline" import os from utils import hasObjectDict from utils import acctDir +from utils import removeIdEnding def updateConversation(baseDir: str, nickname: str, domain: str, @@ -27,7 +28,7 @@ def updateConversation(baseDir: str, nickname: str, domain: str, os.mkdir(conversationDir) conversationId = postJsonObject['object']['conversation'] conversationId = conversationId.replace('/', '#') - postId = postJsonObject['object']['id'] + postId = removeIdEnding(postJsonObject['object']['id']) conversationFilename = conversationDir + '/' + conversationId if not os.path.isfile(conversationFilename): try: