diff sat/plugins/plugin_comp_ap_gateway/http_server.py @ 4023:78b5f356900c

component AP gateway: handle attachments
author Goffi <goffi@goffi.org>
date Thu, 23 Mar 2023 15:42:21 +0100
parents 97df34151c6d
children 524856bd7b19
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_ap_gateway/http_server.py	Thu Mar 23 15:39:48 2023 +0100
+++ b/sat/plugins/plugin_comp_ap_gateway/http_server.py	Thu Mar 23 15:42:21 2023 +0100
@@ -215,7 +215,7 @@
                 raise exceptions.InternalError('"subscribed" state was expected')
             inbox = await self.apg.getAPInboxFromId(signing_actor, use_shared=False)
             actor_id = self.apg.buildAPURL(TYPE_ACTOR, ap_account)
-            accept_data = self.apg.createActivity(
+            accept_data = self.apg.create_activity(
                 "Accept", actor_id, object_=data
             )
             await self.apg.signAndPost(inbox, actor_id, accept_data)
@@ -715,7 +715,7 @@
             ordered_items = [
                 await self.apg.mb_data_2_ap_item(
                     self.apg.client,
-                    await self.apg._m.item2mbdata(
+                    await self.apg._m.item_2_mb_data(
                         self.apg.client,
                         item,
                         account_jid,