Include PEP data in export/import

This commit is contained in:
Matthew Wild
2022-01-16 15:22:12 +00:00
committed by Jonas Schäfer
parent f6395d4d9c
commit 390ecded42

View File

@@ -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)