From 390ecded42ab202137eb9e213bdcd51c0208e8e1 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 16 Jan 2022 15:22:12 +0000 Subject: [PATCH] Include PEP data in export/import --- snikket_web/prosodyclient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snikket_web/prosodyclient.py b/snikket_web/prosodyclient.py index f743f16..23bd841 100644 --- a/snikket_web/prosodyclient.py +++ b/snikket_web/prosodyclient.py @@ -1131,7 +1131,7 @@ class ProsodyClient: session: aiohttp.ClientSession, ) -> typing.Optional[str]: async with session.get( - self._xep227_endpoint("/export?stores=roster,vcard,pep"), + self._xep227_endpoint("/export?stores=roster,vcard,pep,pep_data"), # noqa:E501 ) as resp: self._raise_error_from_response(resp) if resp.status == 204: @@ -1146,7 +1146,7 @@ class ProsodyClient: session: aiohttp.ClientSession, ) -> bool: async with session.post( - self._xep227_endpoint("/import?stores=roster,vcard,pep"), + self._xep227_endpoint("/import?stores=roster,vcard,pep,pep_data"), # noqa:E501 data=user_xml, ) as resp: self._raise_error_from_response(resp)