comparison sat/plugins/plugin_comp_ap_gateway/events.py @ 4027:26c3e1bc7fb7

plugin XEP-0471: renamed "events" plugin to XEP-0471 now that there is a XEP
author Goffi <goffi@goffi.org>
date Thu, 30 Mar 2023 16:47:41 +0200
parents 78b5f356900c
children 524856bd7b19
comparison
equal deleted inserted replaced
4026:fe4725bf42fb 4027:26c3e1bc7fb7
94 """XMPP Events <=> AP Events conversion""" 94 """XMPP Events <=> AP Events conversion"""
95 95
96 def __init__(self, apg): 96 def __init__(self, apg):
97 self.host = apg.host 97 self.host = apg.host
98 self.apg = apg 98 self.apg = apg
99 self._events = self.host.plugins["EVENTS"] 99 self._events = self.host.plugins["XEP-0471"]
100 100
101 async def event_data_2_ap_item( 101 async def event_data_2_ap_item(
102 self, event_data: dict, author_jid: jid.JID, is_new: bool=True 102 self, event_data: dict, author_jid: jid.JID, is_new: bool=True
103 ) -> dict: 103 ) -> dict:
104 """Convert event data to AP activity 104 """Convert event data to AP activity