Mercurial > libervia-backend
comparison sat/plugins/plugin_comp_ap_gateway/http_server.py @ 3804:36b167ddbfca
component AP gateway: AP delete activity => message retract:
handle retractation of messages. As it is not possible to know from the AP item alone if
we need to to a message retractation (XEP-0424) or a pubsub retractation (XEP-0060), we
now cache sent message, and decide which method to use according to how the item is cached
(i.e. in message history or in pubsub cache).
rel 367
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 17 Jun 2022 14:15:23 +0200 |
parents | 983df907d456 |
children | 2032826cfbcf |
comparison
equal
deleted
inserted
replaced
3803:d5f343939239 | 3804:36b167ddbfca |
---|---|
250 if node is None: | 250 if node is None: |
251 node = self.apg._m.namespace | 251 node = self.apg._m.namespace |
252 client = await self.apg.getVirtualClient(signing_actor) | 252 client = await self.apg.getVirtualClient(signing_actor) |
253 objects = await self.apg.apGetList(data, "object") | 253 objects = await self.apg.apGetList(data, "object") |
254 for obj in objects: | 254 for obj in objects: |
255 await self.apg.newAPDeleteItem(client, account_jid, node, obj) | 255 await self.apg.newAPDeleteItem(client, account_jid, node, data, obj) |
256 | 256 |
257 async def handleCreateActivity( | 257 async def handleCreateActivity( |
258 self, | 258 self, |
259 request: "HTTPRequest", | 259 request: "HTTPRequest", |
260 data: dict, | 260 data: dict, |