From cb91d16268d041d31ce6442350d1e65f0c1574ec Mon Sep 17 00:00:00 2001 From: Schimon Jehudah Date: Fri, 24 May 2024 09:18:07 +0000 Subject: [PATCH] Fix error upon invitation to join a groupchat (Thank you roughnecks). --- slixfeed/action.py | 4 +++- slixfeed/version.py | 4 ++-- slixfeed/xmpp/muc.py | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/slixfeed/action.py b/slixfeed/action.py index e0722ce..ad3c119 100644 --- a/slixfeed/action.py +++ b/slixfeed/action.py @@ -306,8 +306,9 @@ async def xmpp_pubsub_send_unread_items(self, jid_bare): feed_entry = pack_entry_into_dict(db_file, entry) node_entry = create_rfc4287_entry(feed_entry) entry_url = feed_entry['link'] - print(entry_url) item_id = hash_url_to_md5(entry_url) + print('PubSub node item was sent to', jid_bare, node_id) + print(entry_url) print(item_id) iq_create_entry = XmppPubsub.create_entry( self, jid_bare, node_id, item_id, node_entry) @@ -785,6 +786,7 @@ async def list_unread_entries(self, result, feed_title, jid): title = BeautifulSoup(title, "lxml").text summary = BeautifulSoup(summary, "lxml").text except: + print('Found issue at action.py') print(result[3]) breakpoint() # TODO Limit text length diff --git a/slixfeed/version.py b/slixfeed/version.py index e480891..63b480d 100644 --- a/slixfeed/version.py +++ b/slixfeed/version.py @@ -1,2 +1,2 @@ -__version__ = '0.1.67' -__version_info__ = (0, 1, 67) +__version__ = '0.1.68' +__version_info__ = (0, 1, 68) diff --git a/slixfeed/xmpp/muc.py b/slixfeed/xmpp/muc.py index bdb7050..af9c8ab 100644 --- a/slixfeed/xmpp/muc.py +++ b/slixfeed/xmpp/muc.py @@ -74,6 +74,8 @@ class XmppGroupchat: e.presence['error']['code'] == '403'): logging.warning('{} is banned from {}'.format(self.alias, jid)) result = 'ban' + else: + result = 'error' return result