Forgot self

This commit is contained in:
Mint 2022-09-10 19:33:16 +03:00
parent c3491de711
commit 7a4cad60a7

View file

@ -70,10 +70,10 @@ class ReplyBot:
async def reply(self, notification): async def reply(self, notification):
toot = await utils.make_post(self.cfg) # generate a toot toot = await utils.make_post(self.cfg) # generate a toot
if cfg['strip_paired_punctuation']: if self.cfg['strip_paired_punctuation']:
toot = PAIRED_PUNCTUATION.sub("", toot) toot = PAIRED_PUNCTUATION.sub("", toot)
toot = toot.replace("@", "@\u200b") # sanitize mentions toot = toot.replace("@", "@\u200b") # sanitize mentions
toot = utils.remove_mentions(cfg, toot) toot = utils.remove_mentions(self.cfg, toot)
await self.pleroma.reply(notification['status'], toot, cw=self.cfg['cw']) await self.pleroma.reply(notification['status'], toot, cw=self.cfg['cw'])
@staticmethod @staticmethod