From 614ccc3a6f34817ed46785fbdaedeb3cbefbba84 Mon Sep 17 00:00:00 2001 From: Goffi Date: Sat, 18 Mar 2023 16:20:30 +0100 Subject: [PATCH] component AP gateway: fix bad use of `parseAPURL` return data: `parent_item_id` was not retrieved correctly, probably due to a missed update after code change. --- sat/plugins/plugin_comp_ap_gateway/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat/plugins/plugin_comp_ap_gateway/__init__.py b/sat/plugins/plugin_comp_ap_gateway/__init__.py index 1e506218..e4b77543 100644 --- a/sat/plugins/plugin_comp_ap_gateway/__init__.py +++ b/sat/plugins/plugin_comp_ap_gateway/__init__.py @@ -2365,7 +2365,7 @@ class APGateway: ) return try: - parent_item_account, parent_item_id = url_args[0].split("/", 1) + parent_item_account, parent_item_id = url_args[0], '/'.join(url_args[1:]) except (IndexError, ValueError): log.warning( "Ignoring AP item replying to an XMPP item with invalid inReplyTo URL "