mirror of
https://git.kiwifarms.net/mint/ebooks.git
synced 2024-10-22 23:19:07 +00:00
Forgot self
This commit is contained in:
parent
c3491de711
commit
7a4cad60a7
1 changed files with 2 additions and 2 deletions
4
reply.py
4
reply.py
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue