Few more fixes

This commit is contained in:
Mint 2023-03-07 16:43:05 +03:00
parent e11f386caa
commit f641af96d8

View file

@ -80,7 +80,7 @@ class ReplyBot:
try:
status = await self.pleroma.get_status(argument)
if status['content'] != "":
keywords = cleanup_toot(utils.extract_post_content(status['content']), self.cfg)
keywords = self.cleanup_toot(utils.extract_post_content(status['content']), self.cfg)
else:
keywords = None
@ -88,6 +88,7 @@ class ReplyBot:
toot = self.cleanup_toot(toot, self.cfg)
await self.pleroma.reply(status, toot, cw=self.cfg['cw'])
except:
async with anyio.create_task_group() as tg:
tg.start_soon(self.pleroma.react, post_id, '')
tg.start_soon(self.pleroma.reply, notification['status'], 'Error: ' + exc.args[0])
except pleroma.BadRequest as exc: