From: kaliko Date: Wed, 22 Mar 2023 16:43:12 +0000 (+0100) Subject: rtbl: Fixed publish/retract item X-Git-Tag: 0.3.0~6 X-Git-Url: https://git.kaliko.me/?p=sid.git;a=commitdiff_plain;h=da0f73b32be59d4ee9284aebeb8e0dba7b6f6f47 rtbl: Fixed publish/retract item --- diff --git a/sid/rtbl.py b/sid/rtbl.py index e5e4e6f..0ea3bbb 100644 --- a/sid/rtbl.py +++ b/sid/rtbl.py @@ -126,7 +126,7 @@ class RTBL(Plugin): self.log.debug('Retracted item %s from %s' % ( msg['pubsub_event']['items']['retract']['id'], msg['pubsub_event']['items']['node'])) - self.blocklist.retract_item(msg['pubsub_event']['items']['retract']['id']) + self.blocklist.retract_item(msg['pubsub_event']['items']['retract']) async def _publish(self, msg): """Handler receiving a publish item event.""" @@ -139,7 +139,7 @@ class RTBL(Plugin): else: self.log.debug('No item content') return - self.blocklist.insert_item(msg['pubsub_event']['items']['item']['id']) + self.blocklist.insert_item(msg['pubsub_event']['items']['item']) # Are current participants in the block list for jid in list(self.participants): await self.rtbl_ban(jid)