Mercurial > libervia-backend
comparison sat/plugins/plugin_comp_ap_gateway/__init__.py @ 4013:b13673d998dc
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.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 18 Mar 2023 16:20:30 +0100 |
parents | 69d970f974ff |
children | 4ef473116499 |
comparison
equal
deleted
inserted
replaced
4012:d538b07cddf3 | 4013:b13673d998dc |
---|---|
2363 "Ignoring AP item replying to an XMPP item with an unexpected URL " | 2363 "Ignoring AP item replying to an XMPP item with an unexpected URL " |
2364 f"type({url_type!r}):\n{pformat(ap_item)}" | 2364 f"type({url_type!r}):\n{pformat(ap_item)}" |
2365 ) | 2365 ) |
2366 return | 2366 return |
2367 try: | 2367 try: |
2368 parent_item_account, parent_item_id = url_args[0].split("/", 1) | 2368 parent_item_account, parent_item_id = url_args[0], '/'.join(url_args[1:]) |
2369 except (IndexError, ValueError): | 2369 except (IndexError, ValueError): |
2370 log.warning( | 2370 log.warning( |
2371 "Ignoring AP item replying to an XMPP item with invalid inReplyTo URL " | 2371 "Ignoring AP item replying to an XMPP item with invalid inReplyTo URL " |
2372 f"({in_reply_to!r}):\n{pformat(ap_item)}" | 2372 f"({in_reply_to!r}):\n{pformat(ap_item)}" |
2373 ) | 2373 ) |