Fix error upon invitation to join a groupchat (Thank you roughnecks).

This commit is contained in:
Schimon Jehudah 2024-05-24 09:18:07 +00:00
parent ec08af7a8e
commit cb91d16268
3 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -1,2 +1,2 @@
__version__ = '0.1.67'
__version_info__ = (0, 1, 67)
__version__ = '0.1.68'
__version_info__ = (0, 1, 68)

View file

@ -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